Skip to content

Commit

Permalink
Add another test for UTF-16LE
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdowad committed Aug 30, 2021
1 parent 7472c82 commit 51a32cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/mbstring/tests/utf_encodings.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,9 @@ $invalid = array(

// First half of surrogate pair at end of string
"\x01\xD8" => "\x00\x00\x00%",

// Two successive codepoints which are both the 1st part of a surrogate pair
"\x01\xD8\x02\xD8" => "\x00\x00\x00%\x00\x00\x00%"
);

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

0 comments on commit 51a32cc

Please sign in to comment.