#27753 [NEW]: Logic bug in empty() documentation
| From: | chris+php at chrullrich dot de | Date: | Mon, 29 Mar 2004 14:59:44 +0000 |
| Subject: | #27753 [NEW]: Logic bug in empty() documentation | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969359821@lists.php.net to get a copy of this message | ||
From: chris+php at chrullrich dot de
Operating system:
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Logic bug in empty() documentation
Description:
------------
The documentation for empty() states:
"empty() returns FALSE if var has a
non-empty or non-zero value."
Leaving aside the fact that empty()'s behavior of returning TRUE if the
variable contains the string "0" is completely useless, the documentation
is wrong. It should read:
"empty() returns FALSE if var has a
non-empty and non-zero value."
^^^
--
Edit bug report at http://bugs.php.net/?id=27753&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27753&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27753&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27753&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27753&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27753&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27753&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27753&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27753&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27753&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27753&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27753&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27753&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27753&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27753&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27753&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27753&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27753&r=float