php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39443 Bitwise operators (xor)
Submitted: 2006-11-09 09:05 UTC Modified: 2006-11-09 09:08 UTC
From: eugene at cleardesign dot com dot ua Assigned:
Status: Not a bug Package: *Math Functions
PHP Version: 5.2.0 OS: FreeBDS 5.5
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: eugene at cleardesign dot com dot ua
New email:
PHP Version: OS:

 

 [2006-11-09 09:05 UTC] eugene at cleardesign dot com dot ua
Description:
------------
After update PHP from 5.1.4 to 5.2.0 I have difference 
of xor operator







Reproduce code:
---------------
echo -4738698913 ^ 4653896912;

Expected result:
----------------
php 5.1.4 return: -253106801

Actual result:
--------------
php 5.2.0 return: -1788554032


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-09 09:08 UTC] tony2001@php.net
Bitwise operators work with integers, not floats.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Oct 29 14:01:44 2020 UTC