Fixed bug #72300 (ignore_user_abort(false) has no effect)

This commit is contained in:
Xinchen Hui 2016-05-31 07:24:02 -07:00
parent 953ee61a49
commit f2a814df33
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -25,6 +25,7 @@ PHP NEWS
. Fixed bug #72197 (pg_lo_create arbitrary read). (Anatol) . Fixed bug #72197 (pg_lo_create arbitrary read). (Anatol)
- Standard: - Standard:
. Fixed bug #72300 (ignore_user_abort(false) has no effect). (Laruence)
. Fixed bug #72229 (Wrong reference when serialize/unserialize an object). . Fixed bug #72229 (Wrong reference when serialize/unserialize an object).
(Laruence) (Laruence)
. Fixed bug #72193 (dns_get_record returns array containing elements of . Fixed bug #72193 (dns_get_record returns array containing elements of

View File

@ -5525,7 +5525,7 @@ PHP_FUNCTION(ignore_user_abort)
old_setting = PG(ignore_user_abort); old_setting = PG(ignore_user_abort);
if (arg) { if (ZEND_NUM_ARGS()) {
zend_string *key = zend_string_init("ignore_user_abort", sizeof("ignore_user_abort") - 1, 0); zend_string *key = zend_string_init("ignore_user_abort", sizeof("ignore_user_abort") - 1, 0);
zend_alter_ini_entry_chars(key, arg ? "1" : "0", 1, PHP_INI_USER, PHP_INI_STAGE_RUNTIME); zend_alter_ini_entry_chars(key, arg ? "1" : "0", 1, PHP_INI_USER, PHP_INI_STAGE_RUNTIME);
zend_string_release(key); zend_string_release(key);