1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00
Files
archived-php-src/ext/pcre/tests/bug44191.phpt
T
2020-02-03 22:52:20 +01:00

17 lines
197 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