com php-src: Fix #76594: Bus Error due to unaligned access in zend_ini.c OnUpdateLong: NEWS ext/mbstring/mbstring .c
| From: | Christoph Michael Becker | Date: | Sun, 08 Jul 2018 22:54:36 +0000 |
| Subject: | com php-src: Fix #76594: Bus Error due to unaligned access in zend_ini.c OnUpdateLong: NEWS ext/mbstring/mbstring .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102482@lists.php.net to get a copy of this message | ||
Commit: 1c01b1ab48ced6911993d958d06fefbbf39bca19
Author: Christoph M. Becker <cmbecker69@gmx.de> Mon, 9 Jul 2018 00:54:36 +0200
Parents: d664d1e9592ad923ce8656201cb6f85f87ed394c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1c01b1ab48ced6911993d958d06fefbbf39bca19
Log:
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
Bugs:
https://bugs.php.net/76594
Changed paths:
M NEWS
M ext/mbstring/mbstring.c
Diff:
diff --git a/NEWS b/NEWS
index 4be623c..851373d 100644
--- a/NEWS
+++ b/NEWS
@@ -17,6 +17,10 @@ PHP NEWS
incorrectly) - added new log related FPM configuration options:
log_limit, log_buffering and decorate_workers_output. (Jakub Zelenka)
+- mbstring:
+ . Fixed bug #76594 (Bus Error due to unaligned access in zend_ini.c
+ OnUpdateLong). (cmb, Nikita)
+
- PDO_Firebird:
. Fixed bug #74462 (PDO_Firebird returns only NULLs for results with boolean
for FIREBIRD >= 3.0). (Dorin Marcoci)
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c
index 01c070b..c3843d7 100644
--- a/ext/mbstring/mbstring.c
+++ b/ext/mbstring/mbstring.c
@@ -1502,7 +1502,7 @@ PHP_INI_BEGIN()
STD_PHP_INI_BOOLEAN("mbstring.strict_detection", "0",
PHP_INI_ALL,
- OnUpdateLong,
+ OnUpdateBool,
strict_detection, zend_mbstring_globals, mbstring_globals)
PHP_INI_END()
/* }}} */