diff --git a/config/ext.json b/config/ext.json index 45c71986..f6dadaef 100644 --- a/config/ext.json +++ b/config/ext.json @@ -853,6 +853,9 @@ "ext-depends": [ "zlib", "zip" + ], + "lib-suggests": [ + "openssl" ] }, "xml": { diff --git a/src/SPC/ConsoleApplication.php b/src/SPC/ConsoleApplication.php index fca4015e..ae27245a 100644 --- a/src/SPC/ConsoleApplication.php +++ b/src/SPC/ConsoleApplication.php @@ -25,7 +25,7 @@ use Symfony\Component\Console\Application; */ final class ConsoleApplication extends Application { - public const VERSION = '2.2.2'; + public const VERSION = '2.2.3'; public function __construct() { diff --git a/src/SPC/builder/extension/xlswriter.php b/src/SPC/builder/extension/xlswriter.php index 37fbf970..475a6c07 100644 --- a/src/SPC/builder/extension/xlswriter.php +++ b/src/SPC/builder/extension/xlswriter.php @@ -12,6 +12,10 @@ class xlswriter extends Extension { public function getUnixConfigureArg(): string { - return '--with-xlswriter --enable-reader'; + $arg = '--with-xlswriter --enable-reader'; + if ($this->builder->getLib('openssl')) { + $arg .= ' --with-openssl=' . BUILD_ROOT_PATH; + } + return $arg; } } diff --git a/src/globals/test-extensions.php b/src/globals/test-extensions.php index f8f2e763..cfde3b3b 100644 --- a/src/globals/test-extensions.php +++ b/src/globals/test-extensions.php @@ -19,8 +19,8 @@ $upx = true; // If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`). $extensions = match (PHP_OS_FAMILY) { - 'Linux', 'Darwin' => 'libxml,swoole', - 'Windows' => 'mbstring,pdo_sqlite,mbregex,libxml', + 'Linux', 'Darwin' => 'libxml,xlswriter,openssl', + 'Windows' => 'mbstring,pdo_sqlite,mbregex', }; // If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).