* tiniest optimization

This commit is contained in:
Stig Bakken 2002-07-09 10:52:04 +00:00
parent 0a6d81b56e
commit d90cada542

View 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;