diff options
author | Tony Wong <microtony@google.com> | 2017-08-02 05:22:47 +0900 |
---|---|---|
committer | Paul Yang <TeBoring@users.noreply.github.com> | 2017-08-01 13:22:47 -0700 |
commit | be73938d72c91ff0075b1ed683f07922ad5801b0 (patch) | |
tree | 20fe8a91abee19691a2af4a358d7d675bba7ba61 /php/src | |
parent | d32f5b4de3501e1bf3c0bc98d8e74219d47ebe69 (diff) |
Change divideInt64ToInt32 to static (#3436)
divideInt64ToInt32 is called statically from protobuf/php/src/Google/Protobuf/Internal/CodedOutputStream.php
(the only reference)
This causes fatal error in PHP 7.1 (32-bit only because 64-bit doesn't use this function)
Diffstat (limited to 'php/src')
-rw-r--r-- | php/src/Google/Protobuf/Internal/GPBUtil.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/php/src/Google/Protobuf/Internal/GPBUtil.php b/php/src/Google/Protobuf/Internal/GPBUtil.php index 22ad27f9..6fe36068 100644 --- a/php/src/Google/Protobuf/Internal/GPBUtil.php +++ b/php/src/Google/Protobuf/Internal/GPBUtil.php @@ -38,7 +38,7 @@ use Google\Protobuf\Internal\MapField; class GPBUtil { - public function divideInt64ToInt32($value, &$high, &$low, $trim = false) + public static function divideInt64ToInt32($value, &$high, &$low, $trim = false) { $isNeg = (bccomp($value, 0) < 0); if ($isNeg) { |