For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > March 2004 > #27753 [NEW]: Logic bug in empty() documentation









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #27753 [NEW]: Logic bug in empty() documentation
Chris+Php At Chrullrich Dot De

2004-03-29, 11:35 am

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com