Return to bug44191.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / pcre / tests |
1.1 ! misho 1: --TEST-- ! 2: Bug #44191 (preg_grep messes up array index) ! 3: --FILE-- ! 4: <?php ! 5: ! 6: $array = range(1, 10); ! 7: ! 8: preg_grep('/asdf/', $array); ! 9: ! 10: while (list($x) = each($array)) { ! 11: print $x; ! 12: } ! 13: ! 14: ?> ! 15: --EXPECT-- ! 16: 0123456789