1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00

Remove unnecesary shadow of new_val

This commit is contained in:
Sara Golemon
2017-03-14 11:29:22 -07:00
parent c74bc87c74
commit 131fd3baa0

View File

@@ -3989,7 +3989,6 @@ PHP_FUNCTION(array_keys)
ZEND_HASH_FILL_PACKED(Z_ARRVAL_P(return_value)) {
if (HT_IS_PACKED(arrval) && HT_IS_WITHOUT_HOLES(arrval)) {
/* Optimistic case: range(0..n-1) for vector-like packed array */
zval new_val;
ZVAL_LONG(&new_val, 0);
for (; Z_LVAL(new_val) < elem_count; ++Z_LVAL(new_val)) {
ZEND_HASH_FILL_ADD(&new_val);