From: Nuno Lopes Date: Mon, 17 Jul 2006 11:39:13 +0000 (+0000) Subject: new test X-Git-Tag: php-5.2.0RC1~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a385098354f773c173d47e3844845aea9ccca18;p=php new test --- diff --git a/ext/pcre/tests/preg_replace2.phpt b/ext/pcre/tests/preg_replace2.phpt new file mode 100644 index 0000000000..80a94d8768 --- /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==