|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6956 empty( "0" ) returns true
Submitted: 2000-09-29 23:54 UTC Modified: 2000-09-30 00:13 UTC
From: sb at phpopentracker dot de Assigned:
Status: Closed Package: Variables related
PHP Version: 4.0 Latest CVS (29/09/2000) OS: Windows 2000 Pro
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: sb at phpopentracker dot de
New email:
PHP Version: OS:


 [2000-09-29 23:54 UTC] sb at phpopentracker dot de
The following script

    $str = "0";
    print empty( $str );

outputs "true". Is this a bug or a feature?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-30 00:13 UTC]
  Dear Sebastian,

  please read the manual entry on empty().


PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Oct 22 23:03:34 2021 UTC