Skip to content

Commit 53f7cde

Browse files
committed
fix swoole compilation with php 8.5.1
1 parent e1a14bb commit 53f7cde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SPC/builder/extension/swoole.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class swoole extends Extension
1717
public function patchBeforeMake(): bool
1818
{
1919
$patched = parent::patchBeforeMake();
20+
FileSystem::replaceFileStr($this->source_dir . '/ext-src/php_swoole_private.h', 'PHP_VERSION_ID > 80500', 'PHP_VERSION_ID >= 80600');
2021
if ($this->builder instanceof MacOSBuilder) {
2122
// Fix swoole with event extension <util.h> conflict bug
2223
$util_path = shell()->execWithResult('xcrun --show-sdk-path', false)[1][0] . '/usr/include/util.h';

0 commit comments

Comments
 (0)