To write a PHP extension, I use >>
in it but unexpectedly it goes wrong.
code:
printf("%08x ", (W[16]));
printf("%08x ", (W[16]) >> 17);
printf("%08x ", 2425545216 >> 17);
result:
9092e200 40c04849 00004849
note:
W[16]=0x9092e200 = 2425545216
, In c ,the code works right. But in php extension ,>>
dosen't padding 0 to the left.
php_version: PHP: 7.1.7 thank you for your help.