Skip to content

Commit 1049a3c

Browse files
committed
curl is always supported now (swoole no longer supports php < 8.1)
1 parent 1b8b53d commit 1049a3c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/SPC/builder/extension/swoole.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,10 @@ public function getUnixConfigureArg(bool $shared = false): string
5050

5151
// commonly used feature: coroutine-time
5252
$arg .= ' --enable-swoole-coro-time --with-pic';
53-
$arg .= ' --enable-swoole-ftp --enable-swoole-ssh';
53+
$arg .= ' --enable-swoole-ftp --enable-swoole-ssh --enable-swoole-curl';
5454

5555
$arg .= $this->builder->getOption('enable-zts') ? ' --enable-swoole-thread --disable-thread-context' : ' --disable-swoole-thread --enable-thread-context';
5656

57-
// required features: curl, openssl (but curl hook is buggy for php 8.0)
58-
$arg .= $this->builder->getPHPVersionID() >= 80100 ? ' --enable-swoole-curl' : ' --disable-swoole-curl';
59-
6057
// additional features that only require libraries
6158
$arg .= $this->builder->getLib('libcares') ? ' --enable-cares' : '';
6259
$arg .= $this->builder->getLib('brotli') ? (' --enable-brotli --with-brotli-dir=' . BUILD_ROOT_PATH) : '';

0 commit comments

Comments
 (0)