From: [EMAIL PROTECTED] Operating system: i688-gnu-linux PHP version: 4.0CVS-2002-01-24 PHP Bug Type: Variables related Bug description: ('foo'==0) => equal ?
A simple condition with a strange result: <?php $a='foo'; $b=0; if ($a==$b) echo 'equal'; else echo 'not equal'; ?> result: $a and $b is equal, but if $b unequal zero the condition results 'not equal' This is not really rationally. Is the problem the automatic type casting? Regards, Steve -- Edit bug report at: http://bugs.php.net/?id=15201&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]