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] [EMAIL PROTECTED] -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