From: Nuno Lopes Date: Sat, 1 Sep 2007 17:47:13 +0000 (+0000) Subject: new test X-Git-Tag: php-5.2.5RC1~230 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3e6be974fc62869c3f4d72bcbbf73865168e613;p=php new test --- diff --git a/ext/pcre/tests/bug42298.phpt b/ext/pcre/tests/bug42298.phpt new file mode 100644 index 0000000000..156f35677c --- /dev/null +++ b/ext/pcre/tests/bug42298.phpt @@ -0,0 +1,46 @@ +--TEST-- +Bug #42298 (pcre gives bogus results with /u) +--FILE-- + +--EXPECT-- +array(1) { + [0]=> + array(2) { + [0]=> + string(3) "A£" + [1]=> + string(2) "BC" + } +} +array(1) { + [0]=> + array(2) { + [0]=> + string(3) "A£" + [1]=> + string(2) "BC" + } +} +array(1) { + [0]=> + array(1) { + [0]=> + string(4) "€ " + } +} +array(1) { + [0]=> + array(1) { + [0]=> + string(4) "€ " + } +}