mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
test swoole enable pgsql
This commit is contained in:
parent
7c866cb0e3
commit
7ee431725c
@ -12,24 +12,24 @@ class swoole extends Extension
|
|||||||
{
|
{
|
||||||
public function getUnixConfigureArg(): string
|
public function getUnixConfigureArg(): string
|
||||||
{
|
{
|
||||||
$arg = '--enable-swoole';
|
$arg = ' --enable-swoole ';
|
||||||
|
|
||||||
$options = '';
|
$options = '';
|
||||||
if ($this->builder->getLib('postgresql')) {
|
if ($this->builder->getLib('postgresql')) {
|
||||||
if (!$this->builder->getExt('pdo_pgsql')) {
|
if (!$this->builder->getExt('pdo_pgsql')) {
|
||||||
$options .= '--enable-swoole-pgsql';
|
$options .= ' --enable-swoole-pgsql ';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$options .= '--disable-swoole-pgsql';
|
$options .= ' --disable-swoole-pgsql ';
|
||||||
}
|
}
|
||||||
$arg .= $options;
|
$arg .= $options;
|
||||||
$arg .= $this->builder->getLib('openssl') ? ' --enable-openssl' : ' --disable-openssl --without-openssl';
|
$arg .= $this->builder->getLib('openssl') ? ' --enable-openssl ' : ' --disable-openssl --without-openssl ';
|
||||||
$arg .= $this->builder->getLib(
|
$arg .= $this->builder->getLib(
|
||||||
'brotli'
|
'brotli'
|
||||||
) ? (' --enable-brotli --with-brotli-dir=' . BUILD_ROOT_PATH) : ' --disable-brotli';
|
) ? (' --enable-brotli --with-brotli-dir=' . BUILD_ROOT_PATH) : ' --disable-brotli ';
|
||||||
// swoole curl hook is buggy for php 8.0
|
// swoole curl hook is buggy for php 8.0
|
||||||
$arg .= $this->builder->getExt('curl') && $this->builder->getPHPVersionID(
|
$arg .= $this->builder->getExt('curl') && $this->builder->getPHPVersionID(
|
||||||
) >= 80100 ? ' --enable-swoole-curl' : ' --disable-swoole-curl';
|
) >= 80100 ? ' --enable-swoole-curl' : ' --disable-swoole-curl ';
|
||||||
return $arg;
|
return $arg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user