Bug #11627 Updated: string '0' treated as empty
| From: | sniper@php.net | Date: | Sat, 23 Jun 2001 18:29:39 +0000 |
| Subject: | Bug #11627 Updated: string '0' treated as empty | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57773@lists.php.net to get a copy of this message | ||
ID: 11627
Updated by: sniper
Reported By: vgo@nrd.lt
Old-Status: Open
Status: Closed
Bug Type: Unknown/Other Function
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
Yes, this is intentional. Check the manual page for it:
http://www.php.net/empty
Previous Comments:
---------------------------------------------------------------------------
[2001-06-23 07:54:37] vgo@nrd.lt
the string '0' is not empty but treated as empty
if( empty( '0' ) )
{
}
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11627&edit=2