#27353 [Opn->Csd]: inconsistency in == comparison table docs
| From: | nlopess@php.net | Date: | Sun, 22 Feb 2004 19:26:20 +0000 |
| Subject: | #27353 [Opn->Csd]: inconsistency in == comparison table docs | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969359144@lists.php.net to get a copy of this message | ||
ID: 27353
Updated by: nlopess@php.net
Reported By: jason dot thurston at mckesson dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2004-02-22 14:07:20] jason dot thurston at mckesson dot com
Description:
------------
The "==" comparison table L-2 on url:
http://www.php.net/manual/en/types.comparisons.php
Table L-2. Loose comparisons with ==
documentation demonstrates the following:
accross down result
------- ---------- --------
array() == null true
null == array() false
However, I'd expect both to be true as is what I see in the code
fragment below.
Reproduce code:
---------------
echo "(null == array()) = " .( null==array() ? "true" : "false" ) .
"\n";
echo "(array() == null) = " . ( array()==null ? "true" : "false" ) .
"\n";
Expected result:
----------------
I expect to see what I get. However, the documentation would lead one
to expect a different results.
(null == array()) = true
(array() == null) = true
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27353&edit=1