#20468 [NEW]: strcoll doesn't work
| From: | pixel at dpg dot hu | Date: | Sun, 17 Nov 2002 21:32:05 +0000 |
| Subject: | #20468 [NEW]: strcoll doesn't work | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-25125@lists.php.net to get a copy of this message | ||
From: pixel@dpg.hu
Operating system: windows 2000 hun
PHP version: 4.2.3
PHP Bug Type: *Languages/Translation
Bug description: strcoll doesn't work
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 bug report at http://bugs.php.net/?id=20468&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20468&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20468&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20468&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20468&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20468&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20468&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20468&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20468&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20468&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20468&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20468&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20468&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20468&r=isapi