We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93a3590 commit 2f31226Copy full SHA for 2f31226
1 file changed
src/SPC/builder/extension/grpc.php
@@ -21,9 +21,14 @@ public function patchBeforeBuildconf(): bool
21
if ($this->builder instanceof WindowsBuilder) {
22
throw new ValidationException('grpc extension does not support windows yet');
23
}
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
+ );
29
if (SPCTarget::getTargetOS() === 'Darwin') {
30
FileSystem::replaceFileRegex(
- SOURCE_PATH . '/php-src/ext/grpc/config.m4',
31
+ $this->source_dir . '/config.m4',
32
'/GRPC_LIBDIR=.*$/m',
33
'GRPC_LIBDIR=' . BUILD_LIB_PATH . "\n" . 'LDFLAGS="$LDFLAGS -framework CoreFoundation"'
34
);
0 commit comments