mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
Add another test for UTF-16LE
This commit is contained in:
parent
7472c82c45
commit
51a32ccaf4
@ -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…
Reference in New Issue
Block a user