summaryrefslogtreecommitdiff
path: root/ext/pcre/tests/bug44191.phpt
blob: 7d0b535dc661eb428d576de5e72c89a2d9b71a94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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