From: Nuno Lopes Date: Sun, 7 Oct 2007 14:00:20 +0000 (+0000) Subject: add test for bug #42737. X-Git-Tag: RELEASE_2_0_0a1~1637 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1edb43467a756522f287cb2bed0064a619388b4;p=php add test for bug #42737. HEAD didnt have this bug, as it uses a smarter way to iterate over utf-8 chars --- 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) +}