diff options
-rw-r--r-- | ext/pcre/tests/bug44191.phpt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/pcre/tests/bug44191.phpt b/ext/pcre/tests/bug44191.phpt index 200fb78a8f..52b449091b 100644 --- a/ext/pcre/tests/bug44191.phpt +++ b/ext/pcre/tests/bug44191.phpt @@ -4,8 +4,12 @@ Bug #44191 (preg_grep messes up array index) <?php $array = range(1, 10); + preg_grep('/asdf/', $array); -var_dump($array); + +while (list($x) = each($array)) { + print $x; +} ?> --EXPECT-- |