From: Dmitry Stogov Date: Thu, 6 Mar 2014 21:33:33 +0000 (+0400) Subject: Fixed refcounting X-Git-Tag: POST_PHPNG_MERGE~412^2~381 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b303a6bd6fe336ee96d99f3e8912fe86aa7cf1a;p=php Fixed refcounting --- diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 7ddb526421..0b632b05e4 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -539,7 +539,7 @@ ZEND_API int zval_update_constant_ex(zval *p, void *arg, zend_class_entry *scope p->type = IS_STRING; if (!inline_change) { ZVAL_STRINGL(p, actual, actual_len); - } else if (save) { + } else if (save && save->val != actual) { STR_RELEASE(save); } }