From 7a385098354f773c173d47e3844845aea9ccca18 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Mon, 17 Jul 2006 11:39:13 +0000 Subject: [PATCH] new test --- ext/pcre/tests/preg_replace2.phpt | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 ext/pcre/tests/preg_replace2.phpt diff --git a/ext/pcre/tests/preg_replace2.phpt b/ext/pcre/tests/preg_replace2.phpt new file mode 100644 index 00000000000..80a94d87689 --- /dev/null +++ b/ext/pcre/tests/preg_replace2.phpt @@ -0,0 +1,42 @@ +--TEST-- +preg_replace() +--FILE-- + +--EXPECTF-- +Warning: preg_replace(): Parameter mismatch, pattern is a string while replacement in an array. in %spreg_replace2.php on line 3 +bool(false) +string(1) "c" +array(3) { + [0]=> + string(1) "x" + [1]=> + string(2) "aA" + [2]=> + string(2) "vb" +} +array(2) { + [0]=> + string(1) "$" + [1]=> + string(1) "$" +} +array(2) { + [0]=> + string(3) "x$y" + [1]=> + string(1) "$" +} +==done==