Issue using Bitwise Operator - Mgration from PHP4 to PHP5
Posted: Tue Nov 17, 2009 11:21 pm
Hello all,
I am getting the errors in the script used to perform the Bitwise operations. The same script works fine on PHP4, but gives different results in PHP5.
Here is a sample code, which gives different results on PHP4 and PHP5.
Please suggest me the solution.
Thanks.
I am getting the errors in the script used to perform the Bitwise operations. The same script works fine on PHP4, but gives different results in PHP5.
Here is a sample code, which gives different results on PHP4 and PHP5.
Code: Select all
<?php
$a = 4653896912;
$b = 12;
$a = ($a >> $b);
echo $a;
?>
Thanks.