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
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: 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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-09 09:08 UTC] tony2001@php.net
Bitwise operators work with integers, not floats.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 10:01:28 2024 UTC