com php-src: Fixed refcounted on INTERNED string: ext/standard/ basic_functions.c

From: Date: Thu, 06 Mar 2014 15:18:48 +0000
Subject: com php-src: Fixed refcounted on INTERNED string: ext/standard/ basic_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77699@lists.php.net to get a copy of this message
Commit: 95d31d773febc768db7039e9578e17cc82f80a85 Author: Xinchen Hui <laruence@gmail.com> Thu, 6 Mar 2014 23:18:48 +0800 Parents: e1a29600bcc6da9766058e0992c4b69aa53c230f Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=95d31d773febc768db7039e9578e17cc82f80a85 Log: Fixed refcounted on INTERNED string Changed paths: M ext/standard/basic_functions.c Diff: diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 71a1925..32507d4 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -5756,7 +5756,9 @@ PHP_FUNCTION(register_tick_function) } for (i = 0; i < tick_fe.arg_count; i++) { - Z_ADDREF(tick_fe.arguments[i]); + if (Z_REFCOUNTED(tick_fe.arguments[i])) { + Z_ADDREF(tick_fe.arguments[i]); + } } zend_llist_add_element(BG(user_tick_functions), &tick_fe);

« previous php.cvs (#77699) next »