#23088 [NEW]: 'if' 'else' has a strange behavior.

From: Date: Mon, 07 Apr 2003 13:06:36 +0000
Subject: #23088 [NEW]: 'if' 'else' has a strange behavior.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37267@lists.php.net to get a copy of this message
From: batera at linux dot ime dot usp dot br Operating system: Slackware Linux PHP version: 4.3.2RC1 PHP Bug Type: Output Control Bug description: 'if' 'else' has a strange behavior. The best whay to show you my problem is send you my example. This expression works as expected: <? if (!isset($usuario) OR $usuario != $login OR $usuario == 'logoff' OR $user_senha != $senha OR $user_senha == 'null') { echo "okokok"; } else echo "corrigido!"; ?> but, when I remove the 'else', 'if', tha in first was false, become true. <? if (!isset($usuario) OR $usuario != $login OR $usuario == 'logoff' OR $user_senha != $senha OR $user_senha == 'null') { echo "ppp"; } ?> I'll go back to php 3.1 'cause I need it working. Please, let me know when this bug is fixed. tx a lot. you allways have done a grate job! best wishes OgRo -- Edit bug report at http://bugs.php.net/?id=23088&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23088&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23088&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23088&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23088&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23088&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23088&r=support Expected behavior: http://bugs.php.net/fix.php?id=23088&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23088&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23088&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23088&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23088&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23088&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23088&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23088&r=gnused

« previous php.bugs (#37267) next »