#20699 [Opn->Bgs]: Comparison between 0 and string returns TRUE

From: Date: Thu, 28 Nov 2002 13:41:07 +0000
Subject: #20699 [Opn->Bgs]: Comparison between 0 and string returns TRUE
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-26092@lists.php.net to get a copy of this message
ID: 20699 Updated by: sander@php.net Reported By: cornecNOSPAM@NOSPAMreach.co.za -Status: Open +Status: Bogus Bug Type: *Compile Issues Operating System: Linux PHP Version: 4.2.3 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-11-28 07:39:34] cornecNOSPAM@NOSPAMreach.co.za PHP Evaluates the following as TRUE, is this right ? if (0 == "Whacked") print "Whacked"; else print "Sane"; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20699&edit=1

« previous php.bugs (#26092) next »