#44281 [NEW]: String-String Comparison operators ill-described

From: Date: Thu, 28 Feb 2008 09:59:48 +0000
Subject: #44281 [NEW]: String-String Comparison operators ill-described
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-553@lists.php.net to get a copy of this message
From: a at b dot c dot de Operating system: any PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: String-String Comparison operators ill-described Description: ------------ The Comparison Operators page summarises the behaviour of the comparison operators when applied to various types. In particular there is the table "Comparison with Various Types". According to that table, a "String" op "String" comparison is evaluated by translating "strings and resources to numbers, usual math". No mention is made anywhere on that page of the actual lexicographic comparison that is performed. One of the consequences seems to have been a recent excruciating batch of user notes on the String Type page. -- Edit bug report at http://bugs.php.net/?id=44281&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44281&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44281&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44281&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44281&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44281&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44281&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44281&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44281&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44281&r=support Expected behavior: http://bugs.php.net/fix.php?id=44281&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44281&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44281&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44281&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44281&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44281&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44281&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44281&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44281&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44281&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44281&r=mysqlcfg

« previous php.doc.bugs (#553) next »