com php-src: Fixed return value handling in ZEND_ASSIGN_OBJ : Zend/zend_execute.c

From: Date: Fri, 28 Feb 2014 06:41:28 +0000
Subject: com php-src: Fixed return value handling in ZEND_ASSIGN_OBJ : Zend/zend_execute.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77872@lists.php.net to get a copy of this message
Commit: 855a030b7b49db58cc203f2ecdc6bdfadf3ed539 Author: Dmitry Stogov <dmitry@zend.com> Fri, 28 Feb 2014 10:41:28 +0400 Parents: 08da14adaceb9b139b3314ed00ac3fd6a3ef2a09 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=855a030b7b49db58cc203f2ecdc6bdfadf3ed539 Log: Fixed return value handling in ZEND_ASSIGN_OBJ Changed paths: M Zend/zend_execute.c Diff: diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index db12b38..135f197 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -830,7 +830,7 @@ static inline void zend_assign_to_object(zval *retval, zval *object_ptr, zval *p Z_OBJ_HT_P(object)->write_dimension(object, property_name, value TSRMLS_CC); } - if (retval && EG(exception) != NULL) { + if (retval && !EG(exception)) { ZVAL_COPY(retval, value); } zval_ptr_dtor(value);

« previous php.cvs (#77872) next »