From: martin dot t dot kutschker at blackbox dot net Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: mb_strwidth() width table is wrong
Description: ------------ The table describing the width of the characters is wrong if you compare it with the table for Unicode 4.0: http://www.unicode.org/Public/UNIDATA/EastAsianWidth.txt For the BMP the wide/full-width chars are: 1100..115F Hangul Choseong 2E80..4DB5 CJK radicals and CJK Ideograph Extension A 4E00..D7A3 CJK Ideographs, Yi syll. and Hangul syll. F900..FA6A CJK compatibiliy ideographs FE30..FE6B presentation forms, punctuations, etc. FF01..FF60 full-width Latin letters FFE0 FULLWIDTH CENT SIGN FFE1 FULLWIDTH POUND SIGN FFE2 FULLWIDTH NOT SIGN FFE3 FULLWIDTH MACRON FFE4 FULLWIDTH BROKEN BAR FFE5 FULLWIDTH YEN SIGN FFE6 FULLWIDTH WON SIGN I didn't check what the actual implementation does, but the docs are certainly wrong (if they mean Unicoe codepoints). -- Edit bug report at http://bugs.php.net/?id=28220&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28220&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28220&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28220&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28220&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28220&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28220&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28220&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28220&r=support Expected behavior: http://bugs.php.net/fix.php?id=28220&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28220&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28220&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28220&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28220&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28220&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28220&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28220&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28220&r=float