PHP: Fix big numbers (uint64, fixed64) bug
This PR:
- Fixes the bug mentioned in #9521 (in PHP and C)
- Improves
.gitignoreconnected to PHP - Adds missed
BCMathextension dependency used byGPBUtil - Fixes
test_util.php
Closes #9521
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
Thank you for the contribution!
I've fixed uint64 bug both in PHP and C implementations. Both of them had problems with uint64 values bigger than int64 on 64-bit systems.
Also found error in test_util.php: https://github.com/protocolbuffers/protobuf/pull/14552/files#diff-9ab947dc8c87867e1fbb799135a9a936f066df99509a347c30512d7e1dd69329R42
It used negative number as unit64 value.
When will it be merged? My code is almost no longer able to run properly on a 64-bit machine. 2147483648 => -2147483648, my timestamp cannot exceed 2038-01-19 11:14:08, I hope it can be merged soon. Thanks
When will it be merged? My code is almost no longer able to run properly on a 64-bit machine. 2147483648 => -2147483648, my timestamp cannot exceed 2038-01-19 11:14:08, I hope it can be merged soon. Thanks
It seems that this PR does not fix uint32?
@zlodes @brotherbigbao @mkruskal-google
any remain work left to do with this pr ? uint32 fixed ?
@calvin2021y I have no idea how to test it on 32bit OS, because it uses Bazel which cannot be complied ob 32bit OS.
So, do we really need 32bit support for now? 🌚
I think it will be safe to merge without 32 bit fix. since most of php deploy on 64 bit platform. (we can just add note to explain 32 bit php not support)
@mkruskal-google
Hi there! Is there a way to run tests for each commit here? There is no Bazel available for 32-bit systems, so, I tried several ways to build it under 32-bit system.
I just want to complete this PR.
Also tried to run GH Actions in my own repository, but there are private images... :|
any progress?