com php-src: NUM_KEY is useless here: ext/standard/ array.c

From: Date: Tue, 20 Jan 2015 08:51:20 +0000
Subject: com php-src: NUM_KEY is useless here: ext/standard/ array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84198@lists.php.net to get a copy of this message
Commit: 47b7d90703a04ab60901ec5be9cda1e44de72deb Author: Xinchen Hui <laruence@php.net> Tue, 20 Jan 2015 16:51:20 +0800 Parents: d975f63f73ea806ae9cffca6eabce3befd904710 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=47b7d90703a04ab60901ec5be9cda1e44de72deb Log: NUM_KEY is useless here Changed paths: M ext/standard/array.c Diff: diff --git a/ext/standard/array.c b/ext/standard/array.c index 91b6661..617392b 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -2376,7 +2376,7 @@ PHP_FUNCTION(array_slice) if (!preserve_keys && (Z_ARRVAL_P(input)->u.flags & HASH_FLAG_PACKED)) { zend_hash_real_init(Z_ARRVAL_P(return_value), 1); ZEND_HASH_FILL_PACKED(Z_ARRVAL_P(return_value)) { - ZEND_HASH_FOREACH_NUM_KEY_VAL(Z_ARRVAL_P(input), num_key, entry) { + ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(input), entry) { pos++; if (pos <= offset) { continue;

« previous php.cvs (#84198) next »