Annotation of embedaddon/php/ext/pcre/tests/bug44191.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #44191 (preg_grep messes up array index)
                      3: --FILE--
                      4: <?php
                      5: 
                      6: $array = range(1, 10);
                      7: 
                      8: preg_grep('/asdf/', $array);
                      9: 
                     10: while (list($x) = each($array)) {
                     11:        print $x;
                     12: }
                     13: 
                     14: ?>
                     15: --EXPECT--
                     16: 0123456789

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>