ID:               20468
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

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

Reply via email to