]> granicus.if.org Git - php/commitdiff
Fix bug #60933 (Testing asort with SORT_LOCALE_STRING fails on Mac OS X 10.6) on...
authorAdam Harvey <aharvey@php.net>
Fri, 3 Feb 2012 01:21:24 +0000 (01:21 +0000)
committerAdam Harvey <aharvey@php.net>
Fri, 3 Feb 2012 01:21:24 +0000 (01:21 +0000)
ext/standard/tests/array/locale_sort.phpt

index c83b5575f4632aefcf47b6d29f5117fa3af22496..1db96042e8d92eeb30249988bd775da710bdb0c9 100644 (file)
@@ -5,7 +5,7 @@ Sort with SORT_LOCALE_STRING
 if (substr(PHP_OS, 0, 3) == 'WIN') {
   die("skip Unix locale name only, not available on windows (and crashes with VC6)\n");
 }
-if (false == setlocale(LC_CTYPE, "fr_FR", "fr_FR.ISO8859-1")) {
+if (false == setlocale(LC_CTYPE, "fr_FR.ISO8859-1", "fr_FR")) {
   die("skip setlocale() failed\n");
 }
 ?>
@@ -14,7 +14,7 @@ unicode.script_encoding=ISO8859-1
 unicode.output_encoding=ISO8859-1
 --FILE--
 <?php
-setlocale(LC_ALL, 'fr_FR', 'fr_FR.ISO8859-1');
+setlocale(LC_ALL, 'fr_FR.ISO8859-1', 'fr_FR');
 $table = array("AB" => "Alberta",
 "BC" => "Colombie-Britannique",
 "MB" => "Manitoba",