Skip to content

Commit 1fcb74a

Browse files
committed
swoole-ftp conflicts with ftp
1 parent 1049a3c commit 1fcb74a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SPC/builder/extension/swoole.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ 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 --enable-swoole-curl';
53+
$arg .= ' --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

@@ -71,6 +71,7 @@ public function getUnixConfigureArg(bool $shared = false): string
7171
$config = (new SPCConfigUtil($this->builder))->getLibraryConfig($this->builder->getLib('unixodbc'));
7272
$arg .= ' --with-swoole-odbc=unixODBC,' . BUILD_ROOT_PATH . ' SWOOLE_ODBC_LIBS="' . $config['libs'] . '"';
7373
}
74+
$arg .= $this->builder->getExt('ftp') ? ' --disable-swoole-ftp' : ' --enable-swoole-ftp';
7475

7576
if ($this->getExtVersion() >= '6.1.0') {
7677
$arg .= ' --enable-swoole-stdext';

0 commit comments

Comments
 (0)