|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesbug-60933-locale-sort-test (last revision 2012-02-02 04:50 UTC by aharvey@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-02-01 03:58 UTC] carloschilazo at gmail dot com
[2012-02-01 13:03 UTC] fa@php.net
[2012-02-01 16:32 UTC] rasmus@php.net
[2012-02-01 17:49 UTC] carloschilazo at gmail dot com
[2012-02-01 19:32 UTC] rasmus@php.net
[2012-02-02 00:55 UTC] j dot jeising at gmail dot com
[2012-02-02 04:50 UTC] aharvey@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: aharvey
[2012-02-02 04:50 UTC] aharvey@php.net
[2012-02-02 04:50 UTC] aharvey@php.net
[2012-02-02 14:18 UTC] j dot jeising at gmail dot com
[2012-02-02 15:29 UTC] rasmus@php.net
[2012-02-03 01:21 UTC] aharvey@php.net
[2012-02-03 01:21 UTC] aharvey@php.net
-Status: Assigned
+Status: Suspended
[2012-02-03 01:21 UTC] aharvey@php.net
[2012-02-03 04:17 UTC] aharvey@php.net
[2012-02-03 04:17 UTC] aharvey@php.net
-Status: Suspended
+Status: Closed
[2012-02-03 04:17 UTC] aharvey@php.net
[2012-04-18 09:46 UTC] laruence@php.net
[2012-07-24 23:37 UTC] rasmus@php.net
[2013-11-17 09:34 UTC] laruence@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 20 20:00:01 2025 UTC |
Description: ------------ The test ext/standard/tests/array/locale_sort.phpt fails. "Île-du-Prince-Édouard" is sorted to the end of the array, instead of the expected 3rd position. Test script: --------------- <?php setlocale(LC_ALL, 'fr_FR', 'fr_FR.ISO8859-1'); $table = array("AB" => "Alberta", "BC" => "Colombie-Britannique", "MB" => "Manitoba", "NB" => "Nouveau-Brunswick", "NL" => "Terre-Neuve-et-Labrador", "NS" => "Nouvelle-Écosse", "ON" => "Ontario", "PE" => "Île-du-Prince-Édouard", "QC" => "Québec", "SK" => "Saskatchewan", "NT" => "Territoires du Nord-Ouest", "NU" => "Nunavut", "YT" => "Territoire du Yukon"); asort($table, SORT_LOCALE_STRING); var_dump($table); Expected result: ---------------- array(13) { ["AB"]=> string(7) "Alberta" ["BC"]=> string(20) "Colombie-Britannique" ["PE"]=> string(21) "Île-du-Prince-Édouard" ["MB"]=> string(8) "Manitoba" ["NB"]=> string(17) "Nouveau-Brunswick" ["NS"]=> string(15) "Nouvelle-Écosse" ["NU"]=> string(7) "Nunavut" ["ON"]=> string(7) "Ontario" ["QC"]=> string(6) "Québec" ["SK"]=> string(12) "Saskatchewan" ["NL"]=> string(23) "Terre-Neuve-et-Labrador" ["YT"]=> string(19) "Territoire du Yukon" ["NT"]=> string(25) "Territoires du Nord-Ouest" Actual result: -------------- array(13) { ["AB"]=> string(7) "Alberta" ["BC"]=> string(20) "Colombie-Britannique" ["MB"]=> string(8) "Manitoba" ["NB"]=> string(17) "Nouveau-Brunswick" ["NS"]=> string(15) "Nouvelle-Écosse" ["NU"]=> string(7) "Nunavut" ["ON"]=> string(7) "Ontario" ["QC"]=> string(6) "Québec" ["SK"]=> string(12) "Saskatchewan" ["NL"]=> string(23) "Terre-Neuve-et-Labrador" ["YT"]=> string(19) "Territoire du Yukon" ["NT"]=> string(25) "Territoires du Nord-Ouest" ["PE"]=> string(21) "Île-du-Prince-Édouard" }