funny thing i ran into today. i have a function something like this:
PHP Code:
<?
function checkthis( $var ){
if( $var == 'abcdefg' ){
return 'is equal';
}else{
return 'is not equal';
}
}
echo checkthis( 0 );
?>
this outputs:
is equal in PHP 5.0.3, .. apparently it works in version 5.0.2 ( i found a bug report ) but is still broken in beta 5.1.
it only is a problem with the integer value of 0. if you put quotes around the 0 when sending it into the function, it works as expected.