]> granicus.if.org Git - php/commitdiff
Fix test
authorFelipe Pena <felipe@php.net>
Thu, 21 Feb 2008 14:22:04 +0000 (14:22 +0000)
committerFelipe Pena <felipe@php.net>
Thu, 21 Feb 2008 14:22:04 +0000 (14:22 +0000)
ext/pcre/tests/bug44191.phpt

index eaffaaad2b6b1905f57a0ba8ace3b8e61f3f2f0a..52b449091b7a371ba7daeaf574dd72bd73ec29c7 100644 (file)
@@ -5,9 +5,11 @@ Bug #44191 (preg_grep messes up array index)
 
 $array = range(1, 10);
 
-preg_grep('/asdf/', $array));
+preg_grep('/asdf/', $array);
 
-var_dump($array);
+while (list($x) = each($array)) {
+       print $x;
+}
 
 ?>
 --EXPECT--