#20699 [NEW]: Comparison between 0 and string returns TRUE

From: Date: Thu, 28 Nov 2002 13:39:34 +0000
Subject: #20699 [NEW]: Comparison between 0 and string returns TRUE
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-26091@lists.php.net to get a copy of this message
From: cornecNOSPAM@NOSPAMreach.co.za Operating system: Linux PHP version: 4.2.3 PHP Bug Type: *Compile Issues Bug description: Comparison between 0 and string returns TRUE PHP Evaluates the following as TRUE, is this right ? if (0 == "Whacked") print "Whacked"; else print "Sane"; -- Edit bug report at http://bugs.php.net/?id=20699&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20699&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20699&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20699&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20699&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20699&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20699&r=support Expected behavior: http://bugs.php.net/fix.php?id=20699&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20699&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20699&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20699&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20699&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20699&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20699&r=isapi

« previous php.bugs (#26091) next »