php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53719 empty() return value desc is wrong
Submitted: 2011-01-12 12:09 UTC Modified: 2011-01-12 13:34 UTC
From: msykes at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: N/A
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: msykes at gmail dot com
New email:
PHP Version: OS:

 

 [2011-01-12 12:09 UTC] msykes at gmail dot com
Description:
------------
you say on the docs that empty() returns FALSE if there is an emtpy value such as 
0, when in fact it's the opposite?

---
From manual page: http://www.php.net/function.empty#Return Values
---


Test script:
---------------
the example on the function page shows that it should return true.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-12 13:26 UTC] rquadling@php.net
-Status: Open +Status: Bogus
 [2011-01-12 13:26 UTC] rquadling@php.net
The documentation says "Returns FALSE if var has a non-empty and non-zero value." 
It then lists what is considered empty.
 [2011-01-12 13:34 UTC] msykes at gmail dot com
pls ignore
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 20:00:02 2026 UTC