Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different versions of PHP output different results #7

Open
xmoer opened this issue Feb 21, 2020 · 2 comments
Open

Different versions of PHP output different results #7

xmoer opened this issue Feb 21, 2020 · 2 comments

Comments

@xmoer
Copy link

xmoer commented Feb 21, 2020

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:

  • Decoding all successful
  • Encoding in PHP 5.X is abnormal
  • English character encoding succeeded
  • Japanese and Chinese character encoding is abnormal
  • Invisible characters are generated, but the English part is normal

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

@tuupola
Copy link
Owner

tuupola commented Mar 2, 2020

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

@xmoer
Copy link
Author

xmoer commented Mar 2, 2020

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

Yeah.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants