|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-02-09 08:40 UTC] cataphract@php.net
[2012-02-09 08:40 UTC] cataphract@php.net
-Status: Open
+Status: Not a bug
[2012-02-09 10:12 UTC] redrat at mail dot ru
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 20:00:01 2025 UTC |
Description: ------------ The strnatcasecmp function wrongly sorts strings in Russian, putting all uppercase letters before lowercase letters. Test script: --------------- <?php echo strnatcmp("alpha", "Beta")."\t"; echo strnatcasecmp("alpha", "Beta").PHP_EOL; echo strnatcmp("альфа", "Бета")."\t"; echo strnatcasecmp("альфа", "Бета").PHP_EOL; ?> Expected result: ---------------- 1 -1 1 -1 Actual result: -------------- 1 -1 1 1