From: [EMAIL PROTECTED] Operating system: win2k PHP version: 4.0.6 PHP Bug Type: Unknown/Other Function Bug description: strange behavior with NULL value
consider the following script: $a = ""; $b = NULL; echo $a == $b ? "true" : "false"; /* weird! it does return TRUE */ echo is_null($a) ? "true" : "false"; // returns FALSE echo is_null($b) ? "true" : "false"; // returns TRUE echo empty($a) ? "true" : "false"; // returns TRUE echo empty($b) ? "true" : "false"; // returns TRUE echo isset($a) ? "true" : "false"; // returns TRUE echo isset($b) ? "true" : "false"; // returns FALSE -- Edit bug report at: http://bugs.php.net/?id=14096&edit=1 -- 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]