#35349 [Opn->Bgs]: if return true if values are different $bug = 0 if($bug== "test"){echo "BUG";}
| From: | sniper@php.net | Date: | Wed, 23 Nov 2005 14:50:26 +0000 |
| Subject: | #35349 [Opn->Bgs]: if return true if values are different $bug = 0 if($bug== "test"){echo "BUG";} | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-88786@lists.php.net to get a copy of this message | ||
ID: 35349
Updated by: sniper@php.net
Reported By: martin at whitewallweb dot com
-Status: Open
+Status: Bogus
Bug Type: Variables related
Operating System: Windows
PHP Version: 5.0.5
New Comment:
This is propably the most common "bug" reported.
RTFM.
Previous Comments:
------------------------------------------------------------------------
[2005-11-23 15:29:00] martin at whitewallweb dot com
Description:
------------
if return true if values are different $bug = 0
if($bug== "test"){echo "BUG";}
Reproduce code:
---------------
$bug = 0;
if($bug == "BUG")
{
echo ("There is a bug");
}
else
{
echo "There is no BUG";
}
Expected result:
----------------
There is no BUG
Actual result:
--------------
There is a bug
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35349&edit=1