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

17 lines
197 B
Plaintext
Raw Normal View History

2008-02-20 21:57:05 +00:00
--TEST--
Bug #44191 (preg_grep messes up array index)
--FILE--
<?php
$array = range(1, 10);
2008-02-21 14:22:41 +00:00
2008-02-21 13:39:04 +00:00
preg_grep('/asdf/', $array);
2008-02-21 14:22:41 +00:00
while (list($x) = each($array)) {
print $x;
}
2008-02-20 21:57:05 +00:00
?>
--EXPECT--
0123456789