Skip to content

Commit 51a32cc

Browse files
committed
Add another test for UTF-16LE
1 parent 7472c82 commit 51a32cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/mbstring/tests/utf_encodings.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,9 @@ $invalid = array(
879879

880880
// First half of surrogate pair at end of string
881881
"\x01\xD8" => "\x00\x00\x00%",
882+
883+
// Two successive codepoints which are both the 1st part of a surrogate pair
884+
"\x01\xD8\x02\xD8" => "\x00\x00\x00%\x00\x00\x00%"
882885
);
883886

884887
testInvalidCodepoints($invalid, 'UTF-16LE');

0 commit comments

Comments
 (0)