#29075 [Opn->Ver]: strnatcmp('foo ', 'foo ') returns -1, should return 0
| From: | sniper@php.net | Date: | Sun, 11 Jul 2004 17:27:44 +0000 |
| Subject: | #29075 [Opn->Ver]: strnatcmp('foo ', 'foo ') returns -1, should return 0 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62034@lists.php.net to get a copy of this message | ||
ID: 29075
Updated by: sniper@php.net
-Summary: strnatcmp('foo ', 'foo ') == -1
Reported By: oliver at burtchen dot com
-Status: Open
+Status: Verified
Bug Type: Strings related
-Operating System: Windows XP
+Operating System: *
-PHP Version: 4.3.7
+PHP Version: 4CVS, 5CVS
New Comment:
See also bug #19795 (there doesn't seem to be any test case for this
function..the one who fixes should add that too, I can't access CVS
atm)
Previous Comments:
------------------------------------------------------------------------
[2004-07-09 17:23:12] oliver at burtchen dot com
Description:
------------
strnatcmp('foo ', 'foo ') returns -1 and not 0 as expected. As far as I
can see, it depends on the trailling whitespace.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29075&edit=1