php-src/ext/pcre/tests/bug44191.phpt
Dmitry Stogov e8718dfe67 Fixed test
2008-02-22 08:31:50 +00:00

16 lines
196 B
PHP

--TEST--
Bug #44191 (preg_grep messes up array index)
--FILE--
<?php
$array = range(1, 10);
preg_grep('/asdf/', $array);
while (list($x) = each($array)) {
print $x;
}
?>
--EXPECT--
0123456789