note 49729 deleted from function.isset by sobak

From: Date: Sat, 10 Dec 2016 09:51:45 +0000
Subject: note 49729 deleted from function.isset by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208412@lists.php.net to get a copy of this message
Note Submitter: codeslinger at compsalot dot com ---- according to the docs -- "isset() will return FALSE if testing a variable that has been set to NULL." That statment is not always correct, sometimes isset() returns TRUE for a NULL value. But the scenarios are obtuse. There are a tons of bugs on this subject, all marked as bogus. Problems occur when NULLs are in named fields of arrays and also when vars are passed by reference. do lots of testing and code defensively. is_null() is your friend...

« previous php.notes (#208412) next »