#18739 [Opn->Bgs]: Comparing integer 0 to string 'NULL'

From: Date: Mon, 05 Aug 2002 08:48:25 +0000
Subject: #18739 [Opn->Bgs]: Comparing integer 0 to string 'NULL'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15998@lists.php.net to get a copy of this message
ID: 18739 Updated by: sander@php.net Reported By: marc@banget-mossaz.nom.fr -Status: Open +Status: Bogus Bug Type: Variables related Operating System: Linux PHP Version: 4.1.2 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2002-08-05 04:04:05] marc@banget-mossaz.nom.fr <?php if (0 == 'NULL') { echo "toto"; } ?> It looks as if string 'NULL' matches integer 0. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18739&edit=1

« previous php.bugs (#15998) next »