mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
New test
This commit is contained in:
parent
702bc3b345
commit
d427b55b1a
14
ext/pcre/tests/bug44191.phpt
Normal file
14
ext/pcre/tests/bug44191.phpt
Normal file
@ -0,0 +1,14 @@
|
||||
--TEST--
|
||||
Bug #44191 (preg_grep messes up array index)
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$array = range(1, 10);
|
||||
|
||||
preg_grep('/asdf/', $array));
|
||||
|
||||
var_dump($array);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
0123456789
|
Loading…
Reference in New Issue
Block a user