[PHP-DEV] Bug #1097: (0 == "test") is true? From: eric <email protected>
Date: 01/26/99

From: eric <email protected>
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 <email protected>
For help: php-dev-help <email protected>