#24905 [NEW]: == operator is not transitive

From: Date: Fri, 01 Aug 2003 15:45:04 +0000
Subject: #24905 [NEW]: == operator is not transitive
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969355539@lists.php.net to get a copy of this message
From: tater at potatoe dot com Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: == operator is not transitive Description: ------------ In other words, you cannot assume that if $a == $b and $b == $c, then $a == $c. (Because of type juggling - e.g. $a=0, $b='hi', $c=true.) This seems worth spelling out in the operators section, since it's not something people would expect, even though it is eventually covered implicitly elsewhere. -- Edit bug report at http://bugs.php.net/?id=24905&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24905&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24905&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24905&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24905&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24905&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24905&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24905&r=support Expected behavior: http://bugs.php.net/fix.php?id=24905&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24905&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24905&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24905&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24905&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24905&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24905&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24905&r=gnused

« previous php.doc (#969355539) next »