Bug #17418: if statment not working?
| From: | ferguson at becon dot org | Date: | Fri, 24 May 2002 20:04:32 +0000 |
| Subject: | Bug #17418: if statment not working? | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-8434@lists.php.net to get a copy of this message | ||
From: ferguson@becon.org
Operating system: win98
PHP version: 4.2.1
PHP Bug Type: Unknown/Other Function
Bug description: if statment not working?
I belive this is a bug but i could be wrong because i find it hard to
belive the the if statment would not be wroking.
$YesMen ='1';
if ($YesMen == '2')echo "This means No";
else echo "This means Yes";
//returnes "This means Yes";
$YesMen ='1';
if ($YesMen == '1')echo "This means No";
else echo "This means Yes";
//returnes "This means Yes"
if ($YesMen == 'sldkw984pruowiefjow48r')echo "This means No";
else echo "This means Yes";
//returnes "This means Yes";
$YesMen =1;
if ($YesMen == 'sldkw984pruowiefjow48r')echo "This means No";
else echo "This means Yes";
//returnes "This means Yes";
$YesMen =2;
if ($YesMen == '2')echo "This means No";
else echo "This means Yes";
//returnes "This means No";
It this acting properly?
Brendan
--
Edit bug report at http://bugs.php.net/?id=17418&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17418&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17418&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17418&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17418&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17418&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17418&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17418&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17418&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17418&r=globals