ID: 45417 Updated by: [EMAIL PROTECTED] Reported By: ponton dot leo at gmail dot com -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: xp PHP Version: 5.2.6 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Use mb_strlen() or wait for PHP 6. Previous Comments: ------------------------------------------------------------------------ [2008-07-02 14:35:24] ponton dot leo at gmail dot com Description: ------------ I realize there have been similar bug reports to this. I can see why the miscount occurs, but feel that either the returned count should be true (string length) or the manual should warn that the count is apparent (byte length). Therefore, the problem is either function or documentation. Reproduce code: --------------- echo strlen('ñ'); Expected result: ---------------- expect 1 Actual result: -------------- get 2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45417&edit=1
