From: Dmitry Stogov Date: Mon, 23 Jun 2014 13:02:22 +0000 (+0400) Subject: Fixed refcounting bug X-Git-Tag: POST_PHPNG_MERGE~146 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c5a1b835ea8d2ef47d3fa1a162d9333ec2686b5;p=php Fixed refcounting bug --- diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index a8e57c950a..0f59e254d7 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); } /* }}} */