From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.6
PHP version: 4.2.2
PHP Bug Type: Strings related
Bug description: Problems with strnatcmp and strnatcasecmp
Characters with an ASCII value above 127 is considered to be the lower
value. This is a bit unfortunate if you use a language with special
characters (like the 3 danish letters after z in the list below).
$list = array('a', 1, '2', '12', '1', 'z', '�', '�', '�', chr(137),
chr(128));
usort($list, 'strnatcmp');
var_dump($list);
The values above 127 are sorted correctly, they should just be considered
higher than A-z.
I believe I have seen this bug on a Solaris Unix as well. But that was a
while ago and I can not provide any detailed information on that
situation.
--
Edit bug report at http://bugs.php.net/?id=19795&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19795&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19795&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19795&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19795&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19795&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19795&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19795&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19795&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19795&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19795&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19795&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=19795&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=19795&r=isapi