PHP 4.0 Bug #5760: isset() on a non existant variable returns the null string instead of false.
| From: | daniele at libertyline dot com | Date: | Mon, 24 Jul 2000 14:30:26 +0000 |
| Subject: | PHP 4.0 Bug #5760: isset() on a non existant variable returns the null string instead of false. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-25724@lists.php.net to get a copy of this message | ||
From: daniele@libertyline.com
Operating system: linux
PHP version: 4.0.1pl2
PHP Bug Type: Misbehaving function
Bug description: isset() on a non existant variable returns the null string instead of false.
The line
echo isset($non_existant_variable)
returns 0 on php3 and nothing on php4.