com php-src: Use reference-counting instead of duplication: ext/standard/array.c

From: Date: Fri, 19 Jan 2018 10:56:31 +0000
Subject: com php-src: Use reference-counting instead of duplication: ext/standard/array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100965@lists.php.net to get a copy of this message
Commit: 465a8cfbadf267c65725e4c8a31c67b98f2f3697 Author: Dmitry Stogov <dmitry@zend.com> Fri, 19 Jan 2018 13:56:31 +0300 Parents: 41ef2952c866e34a51185d26b1e105016e9c5108 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=465a8cfbadf267c65725e4c8a31c67b98f2f3697 Log: Use reference-counting instead of duplication Changed paths: M ext/standard/array.c Diff: diff --git a/ext/standard/array.c b/ext/standard/array.c index 02b80b6..0d6a2c1 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -5984,7 +5984,7 @@ PHP_FUNCTION(array_reduce) if (ZEND_NUM_ARGS() > 2) { - ZVAL_DUP(&result, initial); + ZVAL_COPY(&result, initial); } else { ZVAL_NULL(&result); }

« previous php.cvs (#100965) next »