Skip to content

Commit 2f31226

Browse files
committed
make grpc php 8.5 compatible
1 parent 93a3590 commit 2f31226

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/SPC/builder/extension/grpc.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,14 @@ public function patchBeforeBuildconf(): bool
2121
if ($this->builder instanceof WindowsBuilder) {
2222
throw new ValidationException('grpc extension does not support windows yet');
2323
}
24+
FileSystem::replaceFileStr(
25+
$this->source_dir . '/src/php/ext/grpc/call.c',
26+
'zend_exception_get_default(TSRMLS_C),',
27+
'zend_ce_exception,',
28+
);
2429
if (SPCTarget::getTargetOS() === 'Darwin') {
2530
FileSystem::replaceFileRegex(
26-
SOURCE_PATH . '/php-src/ext/grpc/config.m4',
31+
$this->source_dir . '/config.m4',
2732
'/GRPC_LIBDIR=.*$/m',
2833
'GRPC_LIBDIR=' . BUILD_LIB_PATH . "\n" . 'LDFLAGS="$LDFLAGS -framework CoreFoundation"'
2934
);

0 commit comments

Comments
 (0)