Skip to content

Add Int64 type, methods ReadInt64() and ReadUInt64() and PHP unit tests.#14

Merged
mdurrant merged 1 commit into
mdurrant:masterfrom
handsomematt:master
Dec 8, 2016
Merged

Add Int64 type, methods ReadInt64() and ReadUInt64() and PHP unit tests.#14
mdurrant merged 1 commit into
mdurrant:masterfrom
handsomematt:master

Conversation

@handsomematt

Copy link
Copy Markdown
Contributor

64 bit integer reading uses bcmath functions as whilst PHP has added support for 64 bit integers, a lot of standard functions such as unpack use 32 bit signed integers internally.

All unit tests pass:


...............................................................  63 / 176 ( 35%)
............................................................... 126 / 176 ( 71%)
..................................................

Time: 349 ms, Memory: 6.00MB

OK (176 tests, 485 assertions)```

64 bit integer reading uses bcmath functions as whilst PHP has added support for 64 bit integers, a lot of standard functions such as unpack use 32 bit signed integers internally.
@mdurrant

mdurrant commented Dec 8, 2016

Copy link
Copy Markdown
Owner

Thanks for your contribution 👍

@mdurrant mdurrant merged commit 9abf18d into mdurrant:master Dec 8, 2016
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.

2 participants