php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34981 wrong arithmetic !!
Submitted: 2005-10-25 20:59 UTC Modified: 2005-11-02 01:00 UTC
From: corinl at gmx dot de Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.0.5 OS: debian linux
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: corinl at gmx dot de
New email:
PHP Version: OS:

 

 [2005-10-25 20:59 UTC] corinl at gmx dot de
Description:
------------
the arithmetic gives diferrent reulst in php 5.0.5 and 5.0.4 (also 5.1rc) 

$a = -4738698913 ^ 43814;
echo($a)

Reproduce code:
---------------
$a = -4738698913 ^ 43814;
echo($a)

php 5.0.5 -> -2147439834
php 5.0.4 -> -443704711
php 5.1rc -> -443704711


Expected result:
----------------
-443704711 is correct!

Actual result:
--------------
-2147439834 is wrong!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-25 21:04 UTC] derick@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip
 [2005-10-25 21:20 UTC] corinl at gmx dot de
sorry, cant check it out at the moment. but i looked in the NEWS file and as it's not noted there, i think the bug still exists.
 [2005-10-25 21:28 UTC] derick@php.net
The NEWS file is not all encompassing. Please try the snapshot  and until then please leave this bug at status "feedback".
 [2005-11-02 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 05:01:31 2024 UTC