]> granicus.if.org Git - php/commitdiff
* tiniest optimization
authorStig Bakken <ssb@php.net>
Tue, 9 Jul 2002 10:52:04 +0000 (10:52 +0000)
committerStig Bakken <ssb@php.net>
Tue, 9 Jul 2002 10:52:04 +0000 (10:52 +0000)
pear/PEAR/Remote.php

index ffc7af2fe449b78cd3fcb00558cb5687e52c89c8..353f94ff88a227855941a7436be925177a0ee49b 100644 (file)
@@ -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;