ID: 47067 Updated by: col...@php.net Reported By: farkow at gmail dot com -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Windows/WAMP Server PHP Version: 5.2.8 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. That's expected, please check out: http://php.net/types.comparisons Previous Comments: ------------------------------------------------------------------------ [2009-01-11 10:57:53] farkow at gmail dot com In description, i used a wrong word, sorry for my English. It is not 'integer', i mean 'variable'. ------------------------------------------------------------------------ [2009-01-11 10:44:36] farkow at gmail dot com Description: ------------ I realized it when i try someting about my web-based game, when you set an integer NULL, it is same with 0 and ''. Reproduce code: --------------- <?php $x = NULL; if($x == 0) echo 'UPPS 1<br>'; if($x == '') echo 'UPPS 2<br>'; if($x === '') echo 'UPPS 3<br>'; ?> Expected result: ---------------- //output Actual result: -------------- //output UPPS 1 UPPS 2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47067&edit=1