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

$doubleWord->getUInt32() crash on 32bits php #16

Closed
AlbertVS opened this issue Jan 8, 2019 · 2 comments
Closed

$doubleWord->getUInt32() crash on 32bits php #16

AlbertVS opened this issue Jan 8, 2019 · 2 comments

Comments

@AlbertVS
Copy link

AlbertVS commented Jan 8, 2019

Hi

The $doubleWord->getUInt32() function crash without errors when tring to get negative int for 32 bits php.
the Types::parseUInt32() return float when is 32 bits php but the getUInt32 (that call that functions) force the int conversion crashing when that is not possible.

The workarround is to check if php is 32 bit and call Types::parseUInt32() directly instead $doubleWord->getUInt32().

@aldas
Copy link
Owner

aldas commented Jan 9, 2019

Should work now. I've removed return type from that method.

@AlbertVS
Copy link
Author

tested and works find now.

Thanks.

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