summaryrefslogtreecommitdiff
path: root/ext/pcre/tests/bug44191.phpt
blob: 52b449091b7a371ba7daeaf574dd72bd73ec29c7 (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);

while (list($x) = each($array)) {
	print $x;
}

?>
--EXPECT--
0123456789