mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Add another test for UTF-16LE
This commit is contained in:
parent
7472c82c45
commit
51a32ccaf4
1 changed files with 3 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue