php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18739 Comparing integer 0 to string 'NULL'
Submitted: 2002-08-05 04:04 UTC Modified: 2013-06-17 12:07 UTC
From: test at test dot fr Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.1.2 OS: Linux
Private report: No CVE-ID: None
 [2002-08-05 04:04 UTC] test at test dot fr
<?php
if (0 == 'NULL') {
echo "toto";
}
?>
It looks as if string 'NULL' matches integer 0.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-05 04:48 UTC] 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


 [2011-10-03 13:11 UTC] phpbm at fr dot fr
-: marc@banget-mossaz.nom.fr +: phpbm at fr dot fr
 [2011-10-03 13:11 UTC] phpbm at fr dot fr
This is not a bug.
 [2013-06-17 12:07 UTC] test at test dot fr
-: phpbm at fr dot fr +: test at test dot fr
 [2013-06-17 12:07 UTC] test at test dot fr
This is not a bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC