com php-src: Fixed refcounting: ext/reflection/php_reflection .c

From: Date: Sun, 02 Mar 2014 07:15:51 +0000
Subject: com php-src: Fixed refcounting: ext/reflection/php_reflection .c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77815@lists.php.net to get a copy of this message
Commit: 8d2c1f58a16c4343204cc828bae6291c1064d565 Author: Xinchen Hui <laruence@gmail.com> Sun, 2 Mar 2014 15:15:51 +0800 Parents: ff5870a28805812bce4a4bfcd877d8e7e17f61ff Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8d2c1f58a16c4343204cc828bae6291c1064d565 Log: Fixed refcounting Changed paths: M ext/reflection/php_reflection.c Diff: diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 45a719e..d258362 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -5038,7 +5038,9 @@ ZEND_METHOD(reflection_property, setValue) ZVAL_COPY_VALUE(&garbage, variable_ptr); /* if we assign referenced variable, we should separate it */ - Z_ADDREF_P(value); + if (Z_REFCOUNTED_P(value)) { + Z_ADDREF_P(value); + } if (Z_ISREF_P(value)) { SEPARATE_ZVAL(value); }

« previous php.cvs (#77815) next »