So here is what I would call a bug, but maybe it's thought to be so: <?php $var1 = 0; $var2 = "AS";
if($var1 == "AS"){ echo "<br>Why is this printed"; }
if(0 == "AS"){ echo "<br>At least this should not be printed"; }
if($var2 == "AS"){
echo "<br>Only this should";
}
?>
I didn't expect it. I use php 5.02 and have the zend debugger installed. Does anybody see every echo and finds this strange in a typeless language?
Sebastian
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php