is this a bug in PHP4?
| From: | phpmail at intranet dot alpsnet dot com | Date: | Wed, 20 Dec 2000 22:08:59 +0000 |
| Subject: | is this a bug in PHP4? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31328@lists.php.net to get a copy of this message | ||
<?
$var = 0;
echo "--$var--<br>";
if($var == "am") echo "var == am is true";
else echo "var == am is false";
?>
If you run that on PHP 4.0 or PHP 4.0.3pl1 you will see that
if($var == "am") evaluates to TRUE
This looks like a bug because I just set $var to zero.
zero != "am", right?