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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Sun Dec 22 03:01:28 2024 UTC