#18739 [NEW]: Comparing integer 0 to string 'NULL'
| From: | marc at banget-mossaz dot nom dot fr | Date: | Mon, 05 Aug 2002 08:04:06 +0000 |
| Subject: | #18739 [NEW]: Comparing integer 0 to string 'NULL' | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-15997@lists.php.net to get a copy of this message | ||
From: marc@banget-mossaz.nom.fr
Operating system: Linux
PHP version: 4.1.2
PHP Bug Type: Variables related
Bug description: Comparing integer 0 to string 'NULL'
<?php
if (0 == 'NULL') {
echo "toto";
}
?>
It looks as if string 'NULL' matches integer 0.
--
Edit bug report at http://bugs.php.net/?id=18739&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18739&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18739&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18739&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18739&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18739&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18739&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18739&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18739&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18739&r=globals