#24905 [Opn->Bgs]: == operator is not transitive
| From: | nlopess@php.net | Date: | Sat, 22 May 2004 09:22:50 +0000 |
| Subject: | #24905 [Opn->Bgs]: == operator is not transitive | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969360795@lists.php.net to get a copy of this message | ||
ID: 24905
Updated by: nlopess@php.net
Reported By: tater at potatoe dot com
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
Duplicate of #23110.
Previous Comments:
------------------------------------------------------------------------
[2003-08-01 10:45:04] tater at potatoe dot com
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 this bug report at http://bugs.php.net/?id=24905&edit=1