#41424 [Opn->Bgs]: different result between php 5 and php 4 when using xor operator
| From: | tony2001@php.net | Date: | Fri, 18 May 2007 11:57:30 +0000 |
| Subject: | #41424 [Opn->Bgs]: different result between php 5 and php 4 when using xor operator | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-112819@lists.php.net to get a copy of this message | ||
ID: 41424
Updated by: tony2001@php.net
Reported By: sumathi at gofrugaltech dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: linux
PHP Version: 5.2.2
New Comment:
-3256362460 is float.
Previous Comments:
------------------------------------------------------------------------
[2007-05-18 04:03:32] sumathi at gofrugaltech dot com
Description:
------------
DEAR SIR,
i AM TRYING THIS IN PHP 4
-3256362460 ^ 195405023 =910327547
PHP 5
-3256362460 ^ 195405023 :-1952078625
WHY THIS DIFFERENCE.PLEASE HELP ME
Reproduce code:
---------------
i AM TRYING THIS IN PHP 4
-3256362460 ^ 195405023 =910327547
PHP 5
-3256362460 ^ 195405023 :-1952078625
Expected result:
----------------
EXPECTED RESULT 910327547
Actual result:
--------------
ACTUAL RESULT -1952078625
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41424&edit=1