php-src/ext/pcre/tests/bug44191.phpt

16 lines
196 B
Plaintext
Raw Normal View History

2008-02-20 21:59:43 +00:00
--TEST--
Bug #44191 (preg_grep messes up array index)
--FILE--
<?php
$array = range(1, 10);
2008-02-21 13:38:54 +00:00
preg_grep('/asdf/', $array);
2008-02-22 08:31:50 +00:00
while (list($x) = each($array)) {
print $x;
}
2008-02-20 21:59:43 +00:00
?>
--EXPECT--
0123456789