Bug #16223: Nested If block not execute correctly

From: Date: Fri, 22 Mar 2002 18:11:34 +0000
Subject: Bug #16223: Nested If block not execute correctly
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-3155@lists.php.net to get a copy of this message
From: amin.javanbakht@openwave.com Operating system: SUN PHP version: 4.1.2 PHP Bug Type: *Regular Expressions Bug description: Nested If block not execute correctly if ( ( $name != "test1" ) || ( $name != "test2" ) ) does not work properly. if I Do each condition seperately, it works but If I join them using || then this never works however this works fine if ( ( $name == "test1" ) || ( $name == "test2" ) ) it seems like the problem occurs only with "!=" condition -- Edit bug report at http://bugs.php.net/?id=16223&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16223&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16223&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16223&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16223&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16223&r=support Expected behavior: http://bugs.php.net/fix.php?id=16223&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16223&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16223&r=submittedtwice

« previous php.bugs (#3155) next »