[PHP-DEV] Bug #11627 Updated: string '0' treated as empty
ID: 11627 Updated by: brianlmoon Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Unknown/Other Function Operating system: PHP Version: 4.0.5 Assigned To: Comments: Actually, you should get an error on that line. empty takes a variable, not a value. Previous Comments: --- [2001-06-23 14:29:39] [EMAIL PROTECTED] Yes, this is intentional. Check the manual page for it: http://www.php.net/empty --- [2001-06-23 07:54:37] [EMAIL PROTECTED] 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=11627edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11627 Updated: string '0' treated as empty
ID: 11627 Updated by: sniper Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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=11627edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]