com php-src: Fixed asseration fail: Zend/zend_object_handle rs.c

From: Date: Tue, 25 Feb 2014 10:22:54 +0000
Subject: com php-src: Fixed asseration fail: Zend/zend_object_handle rs.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77917@lists.php.net to get a copy of this message
Commit: 346d52c2c467aa7b6bb036305f2ea23061694399 Author: Xinchen Hui <laruence@gmail.com> Tue, 25 Feb 2014 18:22:54 +0800 Parents: f298ade89a857adaf91dc2aef06b32f5150391cc Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=346d52c2c467aa7b6bb036305f2ea23061694399 Log: Fixed asseration fail Changed paths: M Zend/zend_object_handlers.c Diff: diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index 5f68520..74cc0fa 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -565,7 +565,7 @@ found: /* To check: can't *variable_ptr be some system variable like error_zval here? */ ZVAL_COPY_VALUE(Z_REFVAL_P(variable_ptr), value); - if (Z_REFCOUNT_P(value) > 0) { + if (Z_REFCOUNTED_P(value) && Z_REFCOUNT_P(value) > 0) { zval_copy_ctor(Z_REFVAL_P(variable_ptr)); } zval_dtor(&garbage);

« previous php.cvs (#77917) next »