php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12653 natsort, strnatcmp NOT locale-aware !
Submitted: 2001-08-08 11:18 UTC Modified: 2002-02-26 21:42 UTC
From: joustin at plusnet dot pl Assigned:
Status: Not a bug Package: Arrays related
PHP Version: 4.0.6 OS: Red Hat Linux, Win2000 sp2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: joustin at plusnet dot pl
New email:
PHP Version: OS:

 

 [2001-08-08 11:18 UTC] joustin at plusnet dot pl
I've found out that the "Natural Sorting Algorithm" routines used by PHP are locale-unaware, probably sorting using the default english character set for reference.

Additionally, the link to "Natural Order String Comparison page" in manual seems to be dead.

sigh :(

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-26 21:42 UTC] yohgaki@php.net
The version of PHP that this bug was reported in is too old. Please
try to reproduce this bug in the latest version of PHP (available
from http://www.php.net/downloads.php

If you are still able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 15:01:28 2024 UTC