mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
make grpc php 8.5 compatible
This commit is contained in:
parent
93a35908de
commit
2f3122627e
@ -21,9 +21,14 @@ class grpc extends Extension
|
|||||||
if ($this->builder instanceof WindowsBuilder) {
|
if ($this->builder instanceof WindowsBuilder) {
|
||||||
throw new ValidationException('grpc extension does not support windows yet');
|
throw new ValidationException('grpc extension does not support windows yet');
|
||||||
}
|
}
|
||||||
|
FileSystem::replaceFileStr(
|
||||||
|
$this->source_dir . '/src/php/ext/grpc/call.c',
|
||||||
|
'zend_exception_get_default(TSRMLS_C),',
|
||||||
|
'zend_ce_exception,',
|
||||||
|
);
|
||||||
if (SPCTarget::getTargetOS() === 'Darwin') {
|
if (SPCTarget::getTargetOS() === 'Darwin') {
|
||||||
FileSystem::replaceFileRegex(
|
FileSystem::replaceFileRegex(
|
||||||
SOURCE_PATH . '/php-src/ext/grpc/config.m4',
|
$this->source_dir . '/config.m4',
|
||||||
'/GRPC_LIBDIR=.*$/m',
|
'/GRPC_LIBDIR=.*$/m',
|
||||||
'GRPC_LIBDIR=' . BUILD_LIB_PATH . "\n" . 'LDFLAGS="$LDFLAGS -framework CoreFoundation"'
|
'GRPC_LIBDIR=' . BUILD_LIB_PATH . "\n" . 'LDFLAGS="$LDFLAGS -framework CoreFoundation"'
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user