#41424 [Bgs]: give solution

From: Date: Wed, 23 May 2007 04:24:50 +0000
Subject: #41424 [Bgs]: give solution
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-112946@lists.php.net to get a copy of this message
 ID:               41424
 User updated by:  sumathi at gofrugaltech dot com
-Summary:          different result between php 5 and php 4 when using
                   xor operator
 Reported By:      sumathi at gofrugaltech dot com
 Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: linux
 PHP Version:      5.2.2
 New Comment:

I tried with type cast i did get it.
give the solution 
to get the expected result.


Previous Comments:
------------------------------------------------------------------------

[2007-05-18 11:57:29] tony2001@php.net

-3256362460 is float.

------------------------------------------------------------------------

[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


Thread (3 messages)

« previous php.bugs (#112946) next »