Bug #13577: is_null evaluates true for non-existent variables
| From: | sander@php.net | Date: | Sat, 06 Oct 2001 19:41:15 +0000 |
| Subject: | Bug #13577: is_null evaluates true for non-existent variables | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-67444@lists.php.net to get a copy of this message | ||
From: sander@php.net
Operating system: Win2K & Debian Linux
PHP version: 4.0.6
PHP Bug Type: Variables related
Bug description: is_null evaluates true for non-existent variables
is_null() evaluates true for non-existent variables. Consider the following
snippet:
unset($foo);
if(is_null($foo))
echo 'true';
else
echo 'false';
It outputs 'true'.
Can this be fixed before 4.0.7?
--
Edit bug report at: http://bugs.php.net/?id=13577&edit=1