-
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Two tests from the httpwg suite fail on MacOS (15.4; PHP 8.4.6):
non-ascii stringnon-ascii display string (unescaped)
When parsing füü, the ü character is not properly rejected as non-ascii by ctype_print().
Other methods do properly detect that the character is not in the ascii range.
php > var_dump(ctype_print("ü"));
bool(true)
php > var_dump(preg_match("/[[:print:]]/", "ü"));
int(0)
php > var_dump(mb_detect_encoding("ü", ['ASCII'], true));
bool(false)
A valid ascii character gives:
php > var_dump(ctype_print("f"));
bool(true)
php > var_dump(preg_match("/[[:print:]]/", "f"));
int(1)
php > var_dump(mb_detect_encoding("f", ['ASCII'], true));
string(5) "ASCII"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels