]> granicus.if.org Git - php/commitdiff
New test
authorFelipe Pena <felipe@php.net>
Wed, 20 Feb 2008 21:57:05 +0000 (21:57 +0000)
committerFelipe Pena <felipe@php.net>
Wed, 20 Feb 2008 21:57:05 +0000 (21:57 +0000)
ext/pcre/tests/bug44191.phpt [new file with mode: 0644]

diff --git a/ext/pcre/tests/bug44191.phpt b/ext/pcre/tests/bug44191.phpt
new file mode 100644 (file)
index 0000000..eaffaaa
--- /dev/null
@@ -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