com php-src: Fixed refcounting bug: Zend/zend_exceptions.c

From: Date: Mon, 23 Jun 2014 13:02:22 +0000
Subject: com php-src: Fixed refcounting bug: Zend/zend_exceptions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-79024@lists.php.net to get a copy of this message
Commit: 0c5a1b835ea8d2ef47d3fa1a162d9333ec2686b5 Author: Dmitry Stogov <dmitry@zend.com> Mon, 23 Jun 2014 17:02:22 +0400 Parents: bbc508dea595ef297f2201486078b38e4b7e98fd Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0c5a1b835ea8d2ef47d3fa1a162d9333ec2686b5 Log: Fixed refcounting bug Changed paths: M Zend/zend_exceptions.c Diff: diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index a8e57c9..0f59e25 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -269,12 +269,7 @@ static void _default_exception_get_entry(zval *object, char *name, int name_len, zval *value; value = zend_read_property(default_exception_ce, object, name, name_len, 0 TSRMLS_CC); - - if (UNEXPECTED(Z_ISREF_P(return_value))) { - ZVAL_DUP(return_value, Z_REFVAL_P(value)); - } else { - ZVAL_COPY(return_value, value); - } + ZVAL_COPY(return_value, value); } /* }}} */

« previous php.cvs (#79024) next »