Bug #3922: == bug
| From: | fuf at fuf dot sh dot cvut dot cz | Date: | Sat, 25 Mar 2000 07:14:30 +0000 |
| Subject: | Bug #3922: == bug | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17209@lists.php.net to get a copy of this message | ||
From: fuf@fuf.sh.cvut.cz
Operating system: linux 2.2.14pre16 etc
PHP version: 3.0.15
PHP Bug Type: Misbehaving function
Bug description: == bug
the following program IMO misbehaves (tested on php 3.0.12 and php-4.0b4pl1):
<?
$var = 0;
if($var == 'N/A')
echo "PHP claims \$var is 'N/A', actual \$var's value is $var\n";
else
echo "this version of PHP is ok\n";
?>
note that when the value of $var is non-zero all is okay. i guess that's a bug and not a
feature.
regards,
fuf