Skip to content

Commit

Permalink
Fix xlswriter with openssl conflict bug (#472)
Browse files Browse the repository at this point in the history
* Fix xlswriter with openssl conflict bug

* bump version to 2.2.3
  • Loading branch information
crazywhalecc committed Jun 4, 2024
1 parent 1ae1c81 commit 7e6c2b4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions config/ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,9 @@
"ext-depends": [
"zlib",
"zip"
],
"lib-suggests": [
"openssl"
]
},
"xml": {
Expand Down
2 changes: 1 addition & 1 deletion src/SPC/ConsoleApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
final class ConsoleApplication extends Application
{
public const VERSION = '2.2.2';
public const VERSION = '2.2.3';

public function __construct()
{
Expand Down
6 changes: 5 additions & 1 deletion src/SPC/builder/extension/xlswriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
4 changes: 2 additions & 2 deletions src/globals/test-extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

// 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`).
Expand Down

0 comments on commit 7e6c2b4

Please sign in to comment.