php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5760 isset() on a non existant variable returns the null string instead of false.
Submitted: 2000-07-24 16:30 UTC Modified: 2000-07-24 16:39 UTC
From: daniele at libertyline dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.1pl2 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: daniele at libertyline dot com
New email:
PHP Version: OS:

 

 [2000-07-24 16:30 UTC] daniele at libertyline dot com
The line

	echo isset($non_existant_variable)

returns 0 on php3 and nothing on php4.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-24 16:39 UTC] derick@php.net
This is normal behavior for PHP4.

The display of a false value results in "" (the empty string).
The display of a true value results in 0. 

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 13:01:34 2025 UTC