note 71741 deleted from types.comparisons by nlopess
| From: | nlopess@php.net | Date: | Sun, 17 Dec 2006 20:06:19 +0000 |
| Subject: | note 71741 deleted from types.comparisons by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120705@lists.php.net to get a copy of this message | ||
Note Submitter: Cav
----
Correction:
-------------
the manual's comparison tables say that the loose comparison between the empty string and NULL
evaluates to FALSE, but actually this is not correct.
And therefore that evaluation does espacially not match the behavior of is_null()...
is_null("") //=> FALSE
("" == NULL) //=> TRUE, not false
can any-one prove me wrong?
thought so... ;)
seriously, I've tested it quite intensely, but didn't yet have the time to try different
PHP versions. I'm currently using version 5.1.1.
any ideas?