ID: 25365 Updated by: [EMAIL PROTECTED] Reported By: daniel dot oger at swing dot be -Status: Open +Status: Bogus Bug Type: Variables related Operating System: win xP Pro PHP Version: 4.3.3 New Comment:
That's because you're supposed to use "!==", i.e.: if ($result !== FALSE) echo "ZERO"; else echo "EMPTY"; Previous Comments: ------------------------------------------------------------------------ [2003-09-02 14:03:38] daniel dot oger at swing dot be Description: ------------ The === operator does not work if preceeded with ! Reproduce code: --------------- $result=0; // number zero if (!$result === FALSE) echo "ZERO"; else echo "EMPTY"; Expected result: ---------------- ZERO Actual result: -------------- EMPTY ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25365&edit=1
