tuupola / base85

Base85 encoder and decoder for arbitrary data
MIT License
27 stars 3 forks source link

Different versions of PHP output different results #7

Open xmoer opened 4 years ago

xmoer commented 4 years ago

I tested "Base85" on PHP 5.X and PHP 7.X. The result of PHP 5.X seems to be abnormal. To find out the cause of the problem, I tested more text. The conclusion is as follows:

The problem seems to be in unpack("N*", $data) ? I'm confused about it.

tuupola commented 4 years ago

Just to be sure, problem exists only with PHP 5.X?

xmoer commented 4 years ago

Just to be sure, problem exists only with PHP 5.X?

Yeah.