note 71741 added to types.comparisons

From: Date: Wed, 13 Dec 2006 20:18:04 +0000
Subject: note 71741 added to types.comparisons
Groups: php.notes 
Request: Send a blank email to php-notes+get-120591@lists.php.net to get a copy of this message
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? ---- Server IP: 217.13.201.10 Probable Submitter: 82.135.71.227 ---- Manual Page -- http://www.php.net/manual/en/types.comparisons.php Edit -- https://master.php.net/note/edit/71741 Del: integrated -- https://master.php.net/note/delete/71741/integrated Del: useless -- https://master.php.net/note/delete/71741/useless Del: bad code -- https://master.php.net/note/delete/71741/bad+code Del: spam -- https://master.php.net/note/delete/71741/spam Del: non-english -- https://master.php.net/note/delete/71741/non-english Del: in docs -- https://master.php.net/note/delete/71741/in+docs Del: other reasons-- https://master.php.net/note/delete/71741 Reject -- https://master.php.net/note/reject/71741 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120591) next »