[PHP-DEV] PHP 4.0 Bug #6766: problem with comparing stings with zero From: geoffphillips <email protected>
Date: 09/14/00

From: geoffphillips <email protected>
Operating system: suse linux
PHP version: 4.0.1
PHP Bug Type: *General Issues
Bug description: problem with comparing stings with zero

setup:
standard php4 install from suse linux 6.4 cd edition

bug:
all strings compared for equality with zero, evaluates to true
e.g.
if ("abcd" == 0")
        print "hello";
always prints "hello"

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>