Grokbase Groups PHP php-cvs May 2016
FAQ
Commit: f2a814df335fdfbb062681413ae5d47e5b593044
Author: Xinchen Hui <laruence@gmail.com> Tue, 31 May 2016 07:24:02 -0700
Parents: 953ee61a49aa643c2deaf32b4a2b0b59e0fef857
Branches: PHP-7.0 master

Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f2a814df335fdfbb062681413ae5d47e5b593044

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

Bugs:
https://bugs.php.net/72300

Changed paths:
   M NEWS
   M ext/standard/basic_functions.c


Diff:
diff --git a/NEWS b/NEWS
index 6fc0149..0024b00 100644
--- 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
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index dd61c54..452c565 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -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);

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-cvs @
categoriesphp
postedMay 31, '16 at 2:24p
activeMay 31, '16 at 2:24p
posts1
users1
websitephp.net

1 user in discussion

Xinchen Hui: 1 post

People

Translate

site design / logo © 2019 Grokbase