php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20468 strcoll doesn't work
Submitted: 2002-11-17 15:32 UTC Modified: 2002-12-01 16:34 UTC
From: pixel at dpg dot hu Assigned:
Status: No Feedback Package: *Languages/Translation
PHP Version: 4.2.3 OS: windows 2000 hun
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-11-17 15:32 UTC] pixel at dpg dot 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...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-17 15:33 UTC] derick@php.net
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


 [2002-12-01 16:34 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Oct 19 17:01:23 2020 UTC