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
 [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 17:00:01 2026 UTC