|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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-2023 The PHP Group
All rights reserved.
Last updated: Fri Jan 27 19:03:58 2023 UTC