#19056 [NEW]: empty() function is completely broken
| From: | adets at idsk dot com | Date: | Thu, 22 Aug 2002 19:47:04 +0000 |
| Subject: | #19056 [NEW]: empty() function is completely broken | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-17586@lists.php.net to get a copy of this message | ||
From: adets@idsk.com
Operating system: Linux
PHP version: 4.2.2
PHP Bug Type: Unknown/Other Function
Bug description: empty() function is completely broken
empty() function is not working correctly.
It returns true if variable has a value of: 0 & 0.0
(integer, float), false (boolean) or "0" (string).
This makes this function COMPLETELY USELESS.
Is it possible to implement this function correctly (it
will be great!!!), remove it at
all (because it is useless now) or at least correct
documentation?
--
Edit bug report at http://bugs.php.net/?id=19056&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19056&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19056&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19056&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19056&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19056&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19056&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19056&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19056&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19056&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19056&r=globals