php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19985 xor unsupported ?
Submitted: 2002-10-18 20:28 UTC Modified: 2002-10-18 20:36 UTC
From: veins at skreel dot org Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.2.3 OS: Unix
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: veins at skreel dot org
New email:
PHP Version: OS:

 

 [2002-10-18 20:28 UTC] veins at skreel dot 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...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-18 20:36 UTC] yohgaki@php.net
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]$ 

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 06:01:30 2024 UTC