cvs: php-src /ext/pcre/tests bug44191.phpt
| From: | Felipe Pena | Date: | Wed, 20 Feb 2008 21:59:43 +0000 |
| Subject: | cvs: php-src /ext/pcre/tests bug44191.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-48665@lists.php.net to get a copy of this message | ||
felipe Wed Feb 20 21:59:43 2008 UTC
Modified files:
/php-src/ext/pcre/tests bug44191.phpt
Log:
New test
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/tests/bug44191.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/pcre/tests/bug44191.phpt
diff -u /dev/null php-src/ext/pcre/tests/bug44191.phpt:1.2
--- /dev/null Wed Feb 20 21:59:43 2008
+++ php-src/ext/pcre/tests/bug44191.phpt Wed Feb 20 21:59:43 2008
@@ -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