]> granicus.if.org Git - php/commitdiff
Happy Year of Monkey (Forgot test of #71537)
authorXinchen Hui <laruence@gmail.com>
Mon, 8 Feb 2016 02:22:16 +0000 (10:22 +0800)
committerXinchen Hui <laruence@gmail.com>
Mon, 8 Feb 2016 02:22:16 +0000 (10:22 +0800)
ext/pcre/tests/bug71537.phpt [new file with mode: 0644]

diff --git a/ext/pcre/tests/bug71537.phpt b/ext/pcre/tests/bug71537.phpt
new file mode 100644 (file)
index 0000000..cdc2928
--- /dev/null
@@ -0,0 +1,9 @@
+--TEST--
+Fixed bug #71537 (PCRE segfault from Opcache)
+--FILE--
+<?php
+
+var_dump(preg_replace(array("/Monkey/"), array(2016), "Happy Year of Monkey"));
+?>
+--EXPECT--
+string(18) "Happy Year of 2016"