From a1edb43467a756522f287cb2bed0064a619388b4 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sun, 7 Oct 2007 14:00:20 +0000 Subject: [PATCH] add test for bug #42737. HEAD didnt have this bug, as it uses a smarter way to iterate over utf-8 chars --- ext/pcre/tests/bug42737.phpt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ext/pcre/tests/bug42737.phpt diff --git a/ext/pcre/tests/bug42737.phpt b/ext/pcre/tests/bug42737.phpt new file mode 100644 index 0000000000..8d9dd52b31 --- /dev/null +++ b/ext/pcre/tests/bug42737.phpt @@ -0,0 +1,19 @@ +--TEST-- +Bug #42737 (preg_split('//u') triggers a E_NOTICE with newlines) +--FILE-- + +--EXPECT-- +array(2) { + [0]=> + int(13) + [1]=> + int(10) +} -- 2.50.1