Skip to content

Commit 1c01b1a

Browse files
committed
Fix #76594: Bus Error due to unaligned access in zend_ini.c OnUpdateLong
Since commit ea83b69[1] changed the type of mbstring.strict_detection from `long` to `zend_bool`, we have to update the `on_modify` callback as well. [1] http://git.php.net/?p=php-src.git;a=commit;h=ea83b69883f3f77fd27e4663fa854c88f141ab41
1 parent d664d1e commit 1c01b1a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ PHP NEWS
1717
incorrectly) - added new log related FPM configuration options:
1818
log_limit, log_buffering and decorate_workers_output. (Jakub Zelenka)
1919

20+
- mbstring:
21+
. Fixed bug #76594 (Bus Error due to unaligned access in zend_ini.c
22+
OnUpdateLong). (cmb, Nikita)
23+
2024
- PDO_Firebird:
2125
. Fixed bug #74462 (PDO_Firebird returns only NULLs for results with boolean
2226
for FIREBIRD >= 3.0). (Dorin Marcoci)

ext/mbstring/mbstring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ PHP_INI_BEGIN()
15021502

15031503
STD_PHP_INI_BOOLEAN("mbstring.strict_detection", "0",
15041504
PHP_INI_ALL,
1505-
OnUpdateLong,
1505+
OnUpdateBool,
15061506
strict_detection, zend_mbstring_globals, mbstring_globals)
15071507
PHP_INI_END()
15081508
/* }}} */

0 commit comments

Comments
 (0)