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

index 200fb78a8fb0deaaf4938cad796f3dd729f917ab..52b449091b7a371ba7daeaf574dd72bd73ec29c7 100644 (file)
@@ -4,8 +4,12 @@ Bug #44191 (preg_grep messes up array index)
 <?php
 
 $array = range(1, 10);
+
 preg_grep('/asdf/', $array);
-var_dump($array);
+
+while (list($x) = each($array)) {
+       print $x;
+}
 
 ?>
 --EXPECT--