php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #24905 == operator is not transitive
Submitted: 2003-08-01 10:45 UTC Modified: 2004-05-22 11:22 UTC
From: tater at potatoe dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
5 + 26 = ?
Subscribe to this entry?

 
 [2003-08-01 10:45 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-22 11:22 UTC] nlopess@php.net
Duplicate of #23110.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jun 30 21:01:37 2025 UTC