#20468 [Opn->Fbk]: strcoll doesn't work
| From: | derick@php.net | Date: | Sun, 17 Nov 2002 21:33:53 +0000 |
| Subject: | #20468 [Opn->Fbk]: strcoll doesn't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-25127@lists.php.net to get a copy of this message | ||
ID: 20468
Updated by: derick@php.net
Reported By: pixel@dpg.hu
-Status: Open
+Status: Feedback
Bug Type: *Languages/Translation
Operating System: windows 2000 hun
PHP Version: 4.2.3
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-11-17 15:32:05] pixel@dpg.hu
due to strcoll() was enabled in php 4.2.3 it doesn't works on my
windows
--
setlocale("LC_ALL","hu_HU");
$tomb=array("alma","banán","banan","bánan","BANÁN","BÁNÁN","bAnan","BáNan","hami","Banyeksrác","bÁNÁn","bynek");
usort($tomb, create_function('$a,$b','return
strcoll(strtoupper($a),strtoupper($b));'));
--
gives:
tomb[2] = bAnan
tomb[3] = Banyeksrác
tomb[4] = BANÁN
but 'á' is before than 'y'
this script works on linux...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20468&edit=1