xref: /PHP-7.0/ext/pcre/tests/bug44191.phpt (revision 3fd8ccb0)
1--TEST--
2Bug #44191 (preg_grep messes up array index)
3--FILE--
4<?php
5
6$array = range(1, 10);
7
8preg_grep('/asdf/', $array);
9
10while (list($x) = each($array)) {
11	print $x;
12}
13
14?>
15--EXPECT--
160123456789
17