diff options
author | Stig Bakken <ssb@php.net> | 2002-07-09 10:52:04 +0000 |
---|---|---|
committer | Stig Bakken <ssb@php.net> | 2002-07-09 10:52:04 +0000 |
commit | d90cada542ab0c1fce7a301677188c3621e48f4c (patch) | |
tree | c839f5bcf2ba3968959c967f56dcec2674aa0a45 | |
parent | 0a6d81b56e12a187b75f87966047fa88df68992b (diff) | |
download | php-git-d90cada542ab0c1fce7a301677188c3621e48f4c.tar.gz |
* tiniest optimization
-rw-r--r-- | pear/PEAR/Remote.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pear/PEAR/Remote.php b/pear/PEAR/Remote.php index ffc7af2fe4..353f94ff88 100644 --- a/pear/PEAR/Remote.php +++ b/pear/PEAR/Remote.php @@ -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; |