From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.1.0
PHP Bug Type:     Scripting Engine problem
Bug description:  compare string with integer 0 returns true

<?php
        $i = 0;
        $s = 'the string';
        if($i == $s) {
                echo "'$s' == $i";
        } else {
                echo "'$s' != $i";
        }
?>
// This outputs 'the string' == 0
-- 
Edit bug report at: http://bugs.php.net/?id=14605&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]

Reply via email to