From d90cada542ab0c1fce7a301677188c3621e48f4c Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Tue, 9 Jul 2002 10:52:04 +0000 Subject: [PATCH] * tiniest optimization --- pear/PEAR/Remote.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.50.1