use chinese as the test locale
ubunut 12.04 only ships with english and chinese, so I think we should work with those.
Esse commit está contido em:
@@ -1,3 +1,19 @@
|
||||
<?php
|
||||
|
||||
$a = array("a bc", "\xc1 bc", "d ef");asort($a);print_r($a);$a = array("a bc", "\xc1 bc", "d ef");asort($a, SORT_LOCALE_STRING);print_r($a);$a = array("a bc", "\xc1 bc", "d ef");setlocale(LC_ALL, "pt_PT");asort($a);print_r($a);$a = array("a bc", "\xc1 bc", "d ef");setlocale(LC_ALL, "pt_PT");asort($a, SORT_LOCALE_STRING);print_r($a);
|
||||
$a = array("\xe8\xaf\xb6", "\xe6\xaf\x94", "\xe8\xa5\xbf");
|
||||
asort($a);
|
||||
var_dump($a);
|
||||
|
||||
$a = array("\xe8\xaf\xb6", "\xe6\xaf\x94", "\xe8\xa5\xbf");
|
||||
asort($a, SORT_LOCALE_STRING);
|
||||
var_dump($a);
|
||||
|
||||
$a = array("\xe8\xaf\xb6", "\xe6\xaf\x94", "\xe8\xa5\xbf");
|
||||
var_dump(setlocale(LC_ALL, 'zh_CN.utf8'));
|
||||
asort($a );
|
||||
var_dump($a);
|
||||
|
||||
$a = array("\xe8\xaf\xb6", "\xe6\xaf\x94", "\xe8\xa5\xbf");
|
||||
var_dump(setlocale(LC_ALL, 'zh_CN.utf8'));
|
||||
asort($a, SORT_LOCALE_STRING);
|
||||
var_dump($a);
|
||||
|
||||
@@ -1,24 +1,34 @@
|
||||
Array
|
||||
(
|
||||
[0] => a bc
|
||||
[2] => d ef
|
||||
[1] => Á bc
|
||||
)
|
||||
Array
|
||||
(
|
||||
[0] => a bc
|
||||
[2] => d ef
|
||||
[1] => Á bc
|
||||
)
|
||||
Array
|
||||
(
|
||||
[0] => a bc
|
||||
[2] => d ef
|
||||
[1] => Á bc
|
||||
)
|
||||
Array
|
||||
(
|
||||
[0] => a bc
|
||||
[1] => Á bc
|
||||
[2] => d ef
|
||||
)
|
||||
array(3) {
|
||||
[1]=>
|
||||
string(3) "比"
|
||||
[2]=>
|
||||
string(3) "西"
|
||||
[0]=>
|
||||
string(3) "诶"
|
||||
}
|
||||
array(3) {
|
||||
[1]=>
|
||||
string(3) "比"
|
||||
[2]=>
|
||||
string(3) "西"
|
||||
[0]=>
|
||||
string(3) "诶"
|
||||
}
|
||||
string(10) "zh_CN.utf8"
|
||||
array(3) {
|
||||
[1]=>
|
||||
string(3) "比"
|
||||
[2]=>
|
||||
string(3) "西"
|
||||
[0]=>
|
||||
string(3) "诶"
|
||||
}
|
||||
string(10) "zh_CN.utf8"
|
||||
array(3) {
|
||||
[0]=>
|
||||
string(3) "诶"
|
||||
[1]=>
|
||||
string(3) "比"
|
||||
[2]=>
|
||||
string(3) "西"
|
||||
}
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário