require bcmath

bcmath (specifically, the bccomp function) is internally required, and tests fail if it's not available
pull/9370/head
Brett McBride 3 years ago
parent fabe73db6f
commit 558d128fc7
  1. 3
      php/composer.json
  2. 1
      php/src/Google/Protobuf/Internal/GPBUtil.php

@ -6,7 +6,8 @@
"homepage": "https://developers.google.com/protocol-buffers/",
"license": "BSD-3-Clause",
"require": {
"php": ">=7.0.0"
"php": ">=7.1.0",
"ext-bcmath": "*"
},
"require-dev": {
"phpunit/phpunit": ">=5.0.0"

@ -37,6 +37,7 @@ use Google\Protobuf\FieldMask;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\MapField;
use function bccomp;
function camel2underscore($input) {
preg_match_all(

Loading…
Cancel
Save