php-src/ext/pcre/tests/bug44191.phpt
2017-02-03 21:02:52 +01:00

17 lines
194 B
PHP

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