[PHP-DEV] Bug #10332: XOR logical doesnt work properly From: laurent_tourreau <email protected>
Date: 04/15/01

From: laurent_tourreau <email protected>
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

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>