ID:               47990
 Updated by:       [email protected]
 Reported By:      mercator+bugs at gmail dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         mbstring related
 Operating System: Windows XP
 PHP Version:      5.2.9
-Assigned To:      
+Assigned To:      moriyoshi


Previous Comments:
------------------------------------------------------------------------

[2009-04-16 15:53:35] mercator+bugs at gmail dot com

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)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47990&edit=1

Reply via email to