From: Dmitry Stogov Date: Tue, 23 May 2017 12:25:21 +0000 (+0300) Subject: Avoid useless string duplication X-Git-Tag: php-7.2.0alpha1~57^2~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=490960d8610821fade0833625e2c8b58c4a99271;p=php Avoid useless string duplication --- diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 7f6e46b736..000348d475 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -839,7 +839,7 @@ repeat: RETURN_FALSE; } - ZVAL_DUP(&c.value, val); + ZVAL_COPY(&c.value, val); zval_ptr_dtor(&val_free); register_constant: c.flags = case_sensitive; /* non persistent */