com php-src: Happy Year of Monkey (Forgot test of #71537): ext/pcre/tests/bug71537.phpt

From: Date: Mon, 08 Feb 2016 02:22:16 +0000
Subject: com php-src: Happy Year of Monkey (Forgot test of #71537): ext/pcre/tests/bug71537.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-90963@lists.php.net to get a copy of this message
Commit: 0490d4a4042d248340e5653bfae8d2bdbfb86d15 Author: Xinchen Hui <laruence@gmail.com> Mon, 8 Feb 2016 10:22:16 +0800 Parents: 336e39f2b194e1425dc363abd18554f60c80bed1 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0490d4a4042d248340e5653bfae8d2bdbfb86d15 Log: Happy Year of Monkey (Forgot test of #71537) Bugs: https://bugs.php.net/71537 Changed paths: A ext/pcre/tests/bug71537.phpt Diff: diff --git a/ext/pcre/tests/bug71537.phpt b/ext/pcre/tests/bug71537.phpt new file mode 100644 index 0000000..cdc2928 --- /dev/null +++ b/ext/pcre/tests/bug71537.phpt @@ -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"

« previous php.cvs (#90963) next »