dis-bench / src /php /php-src /ext /pcre /tests /bug44191.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
197 Bytes
--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