mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
* tiniest optimization
This commit is contained in:
parent
0a6d81b56e
commit
d90cada542
@ -290,7 +290,8 @@ class PEAR_Remote extends PEAR
|
||||
($lastkey + 1) == count($php_val)) {
|
||||
$is_continous = true;
|
||||
reset($php_val);
|
||||
for ($expect = 0; $expect < count($php_val); $expect++) {
|
||||
$size = count($php_val);
|
||||
for ($expect = 0; $expect < $size; $expect++, next($php_val)) {
|
||||
if (key($php_val) !== $expect) {
|
||||
$is_continous = false;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user