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

Fix bugs on 64-bit machines #1

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

client9
Copy link

@client9 client9 commented Feb 9, 2016

Hello!

Thanks for posting this code!

We found a bug on 64-bit machines, where int16 and int32 types were being decoded incorrectly. The bug fix is this commit:

client9@0cb38ce

The other commits do the following:

  • correct some URLs to point current msgpack specification documents
  • add a phpunit style test, that tests the bug, and adds code coverage
  • re-format code whitespace (feel free to change!)

thanks again!

n

@client9
Copy link
Author

client9 commented Feb 9, 2016

ahh one more thing. This was not tested on a 32-bit machine. Only 64-bit.

Copy link

@justmd5 justmd5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed #1

@mindplay-dk
Copy link

This is probably still buggy.

Try encoding PHP_INT_MIN and PHP_INT_MAX on a 64-bit system.

Fails both on a 64-bit Linux and modern Win64 build of PHP 7.x for me, but I've chosen to live with it for now, as I'm only using this to encode < 32-bit numbers.

Tyrel M. McQueen and others added 2 commits March 4, 2020 09:30
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

Successfully merging this pull request may close these issues.

3 participants