ID:               41756
 Updated by:       [EMAIL PROTECTED]
 Reported By:      vinod dot lakhanpal at gmail dot com
-Status:           Closed
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: linux
 PHP Version:      4.4.7


Previous Comments:
------------------------------------------------------------------------

[2007-06-21 11:00:08] vinod dot lakhanpal at gmail dot com

Oops it was my fault . I was converting the & into & before
comparing . Soory.

------------------------------------------------------------------------

[2007-06-21 10:01:12] vinod dot lakhanpal at gmail dot com

Description:
------------
Hi
Just try this

$tmp="flight&Hotel&Car";
if($tmp=="flight&Hotel&Car"){
 echo "Hello vinod";
}else{
 echo "Bye vinod"; 
}

to your surprise it will display "Bye vinod" where as it should have
displayed "Hello vinod".
Its really astonishing that nobody pointed this error in php.



Reproduce code:
---------------
$tmp="flight&Hotel&Car";
if($tmp=="flight&Hotel&Car"){
 echo "Hello vinod";
}else{
 echo "Bye vinod"; 
}

Expected result:
----------------
Hello vinod

Actual result:
--------------
Bye vinod


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41756&edit=1

Reply via email to