Bug #10332: XOR logical doesnt work properly

From: Date: Sun, 15 Apr 2001 09:39:10 +0000
Subject: Bug #10332: XOR logical doesnt work properly
Groups: php.dev 
Request: Send a blank email to php-dev+get-51601@lists.php.net to get a copy of this message
From: laurent_tourreau@ifrance.com Operating system: Slackware 7.1 Linux 2.2.16 PHP version: 4.0.4pl1 PHP Bug Type: Scripting Engine problem Bug description: XOR logical doesnt work properly <?php $h = 4; $i =5, $j=6; if ($h == 4 xor $i == 5 xor $j == 6) { echo ("The condition is true"); } else { echo ("The condition is false"); } ?> When i run it, i obtain The condition is true... Im running PHP as Apache module. -- Edit Bug report at: http://bugs.php.net/?id=10332&edit=1

« previous php.dev (#51601) next »