|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-01-18 08:53 UTC] deceze at gmail dot com
[2017-07-28 17:42 UTC] nikic@php.net
-Status: Assigned
+Status: Closed
[2017-07-28 17:42 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 15:00:02 2025 UTC |
Description: ------------ mb_check_encoding() wrongly considers surrogates (Unicode range U+D800 - U+DFFF) to be valid for the UTF-8 encoding. Reproduce code: --------------- var_dump(mb_check_encoding("\xed\xa0\x80",'UTF-8')); Expected result: ---------------- bool(false) Actual result: -------------- bool(true)