note 49729 added to function.isset

From: Date: Mon, 07 Feb 2005 06:21:09 +0000
Subject: note 49729 added to function.isset
Groups: php.notes 
Request: Send a blank email to php-notes+get-84600@lists.php.net to get a copy of this message
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... ---- Manual Page -- http://www.php.net/manual/en/function.isset.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49729 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49729&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49729&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49729&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49729&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49729&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49729&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#84600) next »