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 aff3373 commit cebd95bCopy full SHA for cebd95b
src/SPC/builder/extension/swoole.php
@@ -17,7 +17,11 @@ public function patchBeforeMake(): bool
17
if ($this->builder instanceof MacOSBuilder) {
18
// Fix swoole with event extension <util.h> conflict bug
19
$util_path = shell()->execWithResult('xcrun --show-sdk-path', false)[1][0] . '/usr/include/util.h';
20
- FileSystem::replaceFileStr(SOURCE_PATH . '/php-src/ext/swoole/thirdparty/php/standard/proc_open.cc', 'include <util.h>', 'include "' . $util_path . '"');
+ FileSystem::replaceFileStr(
21
+ "{$this->source_dir}/thirdparty/php/standard/proc_open.cc",
22
+ 'include <util.h>',
23
+ 'include "' . $util_path . '"',
24
+ );
25
return true;
26
}
27
return false;
0 commit comments