From: Xinchen Hui Date: Mon, 13 Jun 2016 05:40:53 +0000 (+0800) Subject: Value should not be a reference here X-Git-Tag: php-7.1.0alpha3~42^2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42f23effa963533500706c54f0b47aed2b47b616;p=php Value should not be a reference here --- diff --git a/ext/standard/array.c b/ext/standard/array.c index cba3b5d46e..7099752942 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)) {