From:             [EMAIL PROTECTED]
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

Reply via email to