xref: /PHP-8.0/ext/pcre/tests/bug44191.phpt (revision f8d79582)
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
10foreach ($array as $k => $v) {
11    print $k;
12}
13
14?>
15--EXPECT--
160123456789
17