#19985 [Opn->Bgs]: xor unsupported ?
| From: | yohgaki@php.net | Date: | Sat, 19 Oct 2002 01:36:40 +0000 |
| Subject: | #19985 [Opn->Bgs]: xor unsupported ? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-22815@lists.php.net to get a copy of this message | ||
ID: 19985
Updated by: yohgaki@php.net
Reported By: veins@skreel.org
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Unix
PHP Version: 4.2.3
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
_Make sure_ you post complete & short script.
[yohgaki@dev DEV]$ cat a.php
<?php
$a = 1;
$b = 2;
$x = ($a ^ $b);
var_dump($x);
var_dump($b);
if (($a ^ $x) != $b) {
echo "NG";
}
?>
[yohgaki@dev DEV]$ php a.php
int(3)
int(2)
[yohgaki@dev DEV]$
Previous Comments:
------------------------------------------------------------------------
[2002-10-18 20:28:25] veins@skreel.org
[...]
$x = $a ^ $b;
if (($a ^ $x) != $b)
die("that should not happen...");
[...]
I know you told people in year 2000 and 2001 to use GMP,
but I don't understand why a lib should be installed just to support
the xor operation...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19985&edit=1