]> granicus.if.org Git - php/commitdiff
Fixed bug #72300 (ignore_user_abort(false) has no effect)
authorXinchen Hui <laruence@gmail.com>
Tue, 31 May 2016 14:24:02 +0000 (07:24 -0700)
committerXinchen Hui <laruence@gmail.com>
Tue, 31 May 2016 14:24:02 +0000 (07:24 -0700)
NEWS
ext/standard/basic_functions.c

diff --git a/NEWS b/NEWS
index 6fc0149b15139b6747dd8094ba9586635bee3860..0024b00d87cdb9f6d8fee64a042b7c7a376c2fb4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -25,6 +25,7 @@ PHP                                                                        NEWS
   . Fixed bug #72197 (pg_lo_create arbitrary read). (Anatol)
 
 - Standard:
+  . Fixed bug #72300 (ignore_user_abort(false) has no effect). (Laruence)
   . Fixed bug #72229 (Wrong reference when serialize/unserialize an object).
     (Laruence)
   . Fixed bug #72193 (dns_get_record returns array containing elements of
index dd61c547c5227582bb40146c280930169d4c7e98..452c565d75eaf35ec4de4c98514abf51396de93b 100644 (file)
@@ -5525,7 +5525,7 @@ PHP_FUNCTION(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_alter_ini_entry_chars(key, arg ? "1" : "0", 1, PHP_INI_USER, PHP_INI_STAGE_RUNTIME);
                zend_string_release(key);