PHP 4.0 Bug #8173 Updated: problem with "xor" and "not"

From: Date: Fri, 08 Dec 2000 21:27:08 +0000
Subject: PHP 4.0 Bug #8173 Updated: problem with "xor" and "not"
Groups: php.dev 
Request: Send a blank email to php-dev+get-40609@lists.php.net to get a copy of this message
ID: 8173 Updated by: hholzgra Reported By: artymiak@safenet.pl Old-Status: Open Status: Closed Bug Type: Scripting Engine problem Assigned To: Comments: the result of xor in PHP4 is of type boolean (true or false), not integer and 'echo true' produces a '1' as output while 'echo false' produces the empy string see alse http://www.php.net/manual/language.operators.logical.php Previous Comments: --------------------------------------------------------------------------- [2000-12-08 12:02:50] artymiak@safenet.pl The following lines of code do not produce any output: echo (0 xor 0); echo (1 xor 1); echo (!1); while these lines of code return expected values: echo (1 xor 0); echo (0 xor 1); echo (!0); --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8173

« previous php.dev (#40609) next »