Bug #18739 [Bgs]: Comparing integer 0 to string 'NULL'
| From: | phpbm at fr dot fr | Date: | Mon, 03 Oct 2011 13:11:40 +0000 |
| Subject: | Bug #18739 [Bgs]: Comparing integer 0 to string 'NULL' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164046@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=18739&edit=1
ID: 18739
User updated by: phpbm at fr dot fr
Reported by: phpbm at fr dot fr
Summary: Comparing integer 0 to string 'NULL'
Status: Bogus
Type: Bug
Package: Variables related
Operating System: Linux
PHP Version: 4.1.2
Block user comment: N
Private report: N
New Comment:
This is not a bug.
Previous Comments:
------------------------------------------------------------------------
[2002-08-05 04:48:23] sander@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
------------------------------------------------------------------------
[2002-08-05 04:04:05] phpbm at fr dot fr
<?php
if (0 == 'NULL') {
echo "toto";
}
?>
It looks as if string 'NULL' matches integer 0.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=18739&edit=1