ID: 47399 User updated by: for-bugs at hnw dot jp Reported By: for-bugs at hnw dot jp Status: Open Bug Type: mbstring related Operating System: any PHP Version: 5.2.9RC2 New Comment:
Proposed fix is here: http://hnw.sakura.ne.jp/mb_check_encoding.47399.patch.txt Previous Comments: ------------------------------------------------------------------------ [2009-02-16 00:05:52] for-bugs at hnw dot jp Description: ------------ mb_check_encoding returns true when specific invalid "SJIS" or "SJIS-win" string. Reproduce code: --------------- <?php var_dump(mb_check_encoding("\x81\x3A", "SJIS-win")); Expected result: ---------------- bool(false) Actual result: -------------- bool(true) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47399&edit=1