mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 09:55:37 +08:00
Add conflict message when building protobuf and grpc (#653)
This commit is contained in:
@@ -15,5 +15,9 @@ class protobuf extends Extension
|
|||||||
if ($this->builder->getPHPVersionID() < 80000 && getenv('SPC_SKIP_PHP_VERSION_CHECK') !== 'yes') {
|
if ($this->builder->getPHPVersionID() < 80000 && getenv('SPC_SKIP_PHP_VERSION_CHECK') !== 'yes') {
|
||||||
throw new \RuntimeException('The latest protobuf extension requires PHP 8.0 or later');
|
throw new \RuntimeException('The latest protobuf extension requires PHP 8.0 or later');
|
||||||
}
|
}
|
||||||
|
// protobuf conflicts with grpc
|
||||||
|
if ($this->builder->getExt('grpc') !== null) {
|
||||||
|
throw new \RuntimeException('protobuf conflicts with grpc, please remove grpc or protobuf extension');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user