|  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.
Block user comment
Status: Assign to:
Bug Type:
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
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-09 09:08 UTC]
Bitwise operators work with integers, not floats.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 08:01:43 2024 UTC