Bug #1097: (0 == "test") is true?
| From: | eric at ipass dot net | Date: | Tue, 26 Jan 1999 20:58:17 +0000 |
| Subject: | Bug #1097: (0 == "test") is true? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3729@lists.php.net to get a copy of this message | ||
From: eric@ipass.net
Operating system: Solaris 2.5.1
PHP version: 3.0.6
PHP Bug Type: Other
Bug description: (0 == "test") is true?
It appears that there is a problem between comparing 0 and a string.
<?
if (0 == "test")
echo "True";
else
echo "False";
?>
will report that the test is true.
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net