From 65e22c3316585915e249df87c38b6df241aa434d Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Sun, 1 Feb 2004 03:03:15 +0000 Subject: [PATCH] - Forgot to add test case. --- ext/pcre/tests/bug27103.phpt | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ext/pcre/tests/bug27103.phpt diff --git a/ext/pcre/tests/bug27103.phpt b/ext/pcre/tests/bug27103.phpt new file mode 100644 index 0000000000..185225d310 --- /dev/null +++ b/ext/pcre/tests/bug27103.phpt @@ -0,0 +1,37 @@ +--TEST-- +Bug #27103 (preg_split('//u') incorrectly splits UTF-8 strings into octets) +--FILE-- + +--EXPECT-- +€: 3 + : 1 +h: 1 +i: 1 + : 1 +t: 1 +h: 1 +e: 1 +r: 1 +e: 1 +€: 3 + : 1 +h: 1 +i: 1 + : 1 +t: 1 +h: 1 +e: 1 +r: 1 +e: 1 + -- 2.50.1