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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: test at test dot fr
New email:
PHP Version: OS:

 

 [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: Fri Dec 27 00:01:30 2024 UTC