summaryrefslogtreecommitdiff
path: root/ext/pcre/tests/bug44191.phpt
blob: 73fc29cd90f74ac80f9582335f92eb1a2fcf3369 (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