Bug #13577 Updated: is_null evaluates true for non-existent variables

From: Date: Sun, 07 Oct 2001 00:29:59 +0000
Subject: Bug #13577 Updated: is_null evaluates true for non-existent variables
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-67456@lists.php.net to get a copy of this message
ID: 13577 Updated by: sniper Reported By: sander@php.net Old Status: Open Status: Bogus Bug Type: Variables related Operating System: Win2K & Debian Linux PHP Version: 4.0.6 New Comment: Intented behaviour. Not a bug. Previous Comments: ------------------------------------------------------------------------ [2001-10-06 15:41:15] sander@php.net 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 this bug report at http://bugs.php.net/?id=13577&edit=1

« previous php.dev (#67456) next »