com php-src: Value should not be a reference here: ext/standard/array.c

From: Date: Mon, 13 Jun 2016 05:40:53 +0000
Subject: com php-src: Value should not be a reference here: ext/standard/array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92363@lists.php.net to get a copy of this message
Commit: 42f23effa963533500706c54f0b47aed2b47b616 Author: Xinchen Hui <laruence@gmail.com> Mon, 13 Jun 2016 13:40:53 +0800 Parents: e933da90283f31cecd89ca1840890bf98d9bf68c Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=42f23effa963533500706c54f0b47aed2b47b616 Log: Value should not be a reference here Changed paths: M ext/standard/array.c Diff: diff --git a/ext/standard/array.c b/ext/standard/array.c index cba3b5d..7099752 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -1613,7 +1613,6 @@ static inline void php_search_array(INTERNAL_FUNCTION_PARAMETERS, int behavior) } } ZEND_HASH_FOREACH_END(); } else { - ZVAL_DEREF(value); if (Z_TYPE_P(value) == IS_LONG) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_idx, str_idx, entry) { if (fast_equal_check_long(value, entry)) {

« previous php.cvs (#92363) next »