com php-src: Avoid useless string duplication: Zend/zend_buil tin_functions.c

[email protected] (Dmitry Stogov)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    490960d8610821fade0833625e2c8b58c4a99271
Author:    Dmitry Stogov <[email protected]>         Tue, 23 May 2017 15:25:21 +0300
Parents:   e8294cd50d9f71a74056b02020c76c2353bb463e
Branches:  master

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=490960d8610821fade0833625e2c8b58c4a99271

Log:
Avoid useless string duplication

Changed paths:
  M  Zend/zend_builtin_functions.c


Diff:
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index 7f6e46b..000348d 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 */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.