1
0
mirror of https://github.com/php/php-src.git synced 2026-04-16 20:41:18 +02:00
Files
archived-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