com php-src: Fixed add_ref asseration fail: ext/refle ction/php_reflection.c

From: Date: Mon, 17 Mar 2014 04:16:46 +0000
Subject: com php-src: Fixed add_ref asseration fail: ext/refle ction/php_reflection.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77626@lists.php.net to get a copy of this message
Commit: 7d8e990f29183dd6dd6f2892a79e7c7135f54032 Author: Xinchen Hui <laruence@gmail.com> Mon, 17 Mar 2014 12:16:46 +0800 Parents: 897a4d255aa297fb3aaca09c30f884daac2704b8 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7d8e990f29183dd6dd6f2892a79e7c7135f54032 Log: Fixed add_ref asseration fail Changed paths: M ext/reflection/php_reflection.c Diff: diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index e01cd24..4531e3b 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -5019,7 +5019,7 @@ ZEND_METHOD(reflection_property, setValue) /* To check: can't *variable_ptr be some system variable like error_zval here? */ ZVAL_COPY_VALUE(variable_ptr, value); - if (Z_REFCOUNT_P(value) > 0) { + if (Z_REFCOUNTED_P(value) && Z_REFCOUNT_P(value) > 0) { zval_copy_ctor(variable_ptr); } zval_dtor(&garbage);

« previous php.cvs (#77626) next »