Gregory Oschwald
b937674e7f
Work around gmp_pow behavior change
2024-11-14 14:05:39 -08:00
Gregory Oschwald
7297c4f7be
Improve the type hints for arrays
2024-11-14 10:19:44 -08:00
Gregory Oschwald
3132b752f6
Run latest php-cs-fixer against code
2022-10-17 09:01:22 -07:00
Gregory Oschwald
9470017d09
Run latest version of php-cs-fixer
...
This makes our hex value capitalization consistent. It appears we
previously used both upper and lower case.
2021-10-11 15:04:34 -07:00
Gregory Oschwald
db7b83a2a6
Remove vestigial code and improve check
...
This code didn't make sense given that we couldn't use an integer
bigger than PHP_INT_MAX when reading from the file. I suspect we used to
inline more of the actual decoding of the value.
2021-04-14 09:44:56 -07:00
Gregory Oschwald
9319f74d97
Enable new php-cs-fixer rules
2021-01-19 08:26:55 -08:00
Gregory Oschwald
d51e21299a
Run new php-cs-fixer
2021-01-19 07:49:12 -08:00
Gregory Oschwald
0ddcfbb029
Remove unreachable return
2021-01-15 14:47:46 -08:00
Gregory Oschwald
817357b698
Fix some indentation
2021-01-15 14:47:00 -08:00
Gregory Oschwald
4921d33fab
Add additional type hints
2021-01-15 14:46:29 -08:00
Gregory Oschwald
e85fa8783d
Use short list_syntax style
2020-06-24 13:38:33 -07:00
Gregory Oschwald
9b13401eb6
Run php-cs-fixer migration aids
2020-06-24 13:38:33 -07:00
Gregory Oschwald
4dc62346f8
Don't use (un)pack where chr/ord will do
2019-12-11 14:00:27 -08:00
peter279k
1614bca386
Test enhancement
2019-11-11 14:13:46 +08:00
Gregory Oschwald
e8d8969cb6
Run newer php-cs-fixer against code
2019-09-24 12:19:23 -07:00
Gregory Oschwald
433544639d
Improve preformance of pointer decoding
2018-11-16 12:02:08 -08:00
Gregory Oschwald
d0c4b2410d
Integer handling fixes for 32 bit machines
...
Previously, we would overflow in a number of cases.
This is not intended to be the final version. This is just enough to get
it working. This is messy and is likely quite slow.
2018-11-15 15:21:39 -08:00
Andy Jack
fb50b26076
php-cs-fixer and phpcs tests run on latest php (7.2)
...
- commit result of `php-cs-fixer fix`
2018-09-19 16:37:11 -04:00
Gregory Oschwald
4f2cfe07f4
Run php-cs-fixer
...
Also fix a number of tests that broke when assertEquals was
replaced with assertSame.
2017-07-06 09:10:26 -07:00
Gregory Oschwald
dcccb2b888
Tidying and minor fixes
2013-10-21 06:24:52 -07:00
Gregory Oschwald
869ef412ea
Added tests and fixes for invalid pointers.
...
Also made the error handling of the file reading much better.
2013-10-09 08:03:15 -07:00
Gregory Oschwald
4a4755b790
Remove outdated comment
2013-07-15 12:12:36 -07:00
Gregory Oschwald
f61a3c2e3a
Test endianness and make hack for pointer test an argument for constructor.
2013-07-15 12:12:09 -07:00
Gregory Oschwald
500fcd2b12
Add tests for very long string and fix an operator precendence issue in sizeFromCtrlByte
2013-07-15 11:06:35 -07:00
Gregory Oschwald
a9ca69ac55
Added missing tests and fixed bugs for type decoding
2013-07-12 08:56:16 -07:00
Gregory Oschwald
8840b9d28a
More tests. Some bug fixes. Pointer decoding is broken.
2013-07-11 15:42:34 -07:00
Gregory Oschwald
b29244c048
Initial commit. Decoder has some functionality.
2013-07-11 14:37:46 -07:00