Open romanrm opened 6 months ago
I wonder which result is correct. I would guess the 64-bit one.
Might also be related to this: https://github.com/tuupola/base85/issues/7
Yes the 64-bit value is correct. See some investigation on the other bug report, and some suggestions in PHP doc comments: https://github.com/scottchiefbaker/php-base85/issues/2#issuecomment-2038821556 https://www.php.net/manual/en/function.unpack.php#106041
With a code like this:
amd64:
armv7el:
PHP 7.4 on both.
-- Just reported a similar bug to another base85 package: https://github.com/scottchiefbaker/php-base85/issues/2 that one has a more severe problem. "unpack" is problematic on 32-bit vs 64-bit, yours almost works, but also couldn't escape it.