From: marek at lewczuk dot com Operating system: Linux/Windows PHP version: 4.3.0 PHP Bug Type: Arrays related Bug description: Array Sort/Multisort -> wrong string sorting with special, national characters
Sorting an array has a very important bug. If your app is using e.g. ISO-8859-2 charset and strings array use special chars like Ś,Ą... PHP doesn't sort strings which use them. I have tried to use setLocale (setLocale is working correctly with strtoupper, strtolower etc.) but nothing. The problem is also in UTF8 charset. This very serious problem... -- Edit bug report at http://bugs.php.net/?id=22931&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22931&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22931&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22931&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22931&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22931&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22931&r=support Expected behavior: http://bugs.php.net/fix.php?id=22931&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22931&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22931&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22931&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22931&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22931&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22931&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22931&r=gnused