Doc #53719 [Bgs]: empty() return value desc is wrong

From: Date: Wed, 12 Jan 2011 12:34:36 +0000
Subject: Doc #53719 [Bgs]: empty() return value desc is wrong
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5787@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53719&edit=1 ID: 53719 User updated by: msykes at gmail dot com Reported by: msykes at gmail dot com Summary: empty() return value desc is wrong Status: Bogus Type: Documentation Problem Package: Documentation problem Operating System: N/A PHP Version: Irrelevant Block user comment: N Private report: N New Comment: pls ignore Previous Comments: ------------------------------------------------------------------------ [2011-01-12 13:26:25] 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 12:09:49] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53719&edit=1

« previous php.doc.bugs (#5787) next »