PHP 4.0 Bug #6766: problem with comparing stings with zero
| From: | geoffphillips at hotmail dot com | Date: | Thu, 14 Sep 2000 22:20:17 +0000 |
| Subject: | PHP 4.0 Bug #6766: problem with comparing stings with zero | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33313@lists.php.net to get a copy of this message | ||
From: geoffphillips@hotmail.com
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"