#27353 [NEW]: inconsistency in == comparison table docs
| From: | jason dot thurston at mckesson dot com | Date: | Sun, 22 Feb 2004 19:07:20 +0000 |
| Subject: | #27353 [NEW]: inconsistency in == comparison table docs | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969359142@lists.php.net to get a copy of this message | ||
From: jason dot thurston at mckesson dot com
Operating system:
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: inconsistency in == comparison table docs
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 bug report at http://bugs.php.net/?id=27353&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27353&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27353&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27353&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27353&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27353&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27353&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27353&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27353&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27353&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27353&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27353&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27353&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27353&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27353&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27353&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27353&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27353&r=float