mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-12 03:15:35 +08:00
Fix openssl missing cert bug for Linux & macOS (#581)
* Fix openssl missing cert bug for linux * Fix openssl missing cert bug for macOS
This commit is contained in:
@@ -69,6 +69,7 @@ class openssl extends LinuxLibraryBase
|
|||||||
"{$env} ./Configure no-shared {$extra} " .
|
"{$env} ./Configure no-shared {$extra} " .
|
||||||
'--prefix=/ ' .
|
'--prefix=/ ' .
|
||||||
'--libdir=lib ' .
|
'--libdir=lib ' .
|
||||||
|
'--openssldir=/etc/ssl ' .
|
||||||
'-static ' .
|
'-static ' .
|
||||||
"{$zlib_extra}" .
|
"{$zlib_extra}" .
|
||||||
'no-legacy ' .
|
'no-legacy ' .
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class openssl extends MacOSLibraryBase
|
|||||||
"./Configure no-shared {$extra} " .
|
"./Configure no-shared {$extra} " .
|
||||||
'--prefix=/ ' . // use prefix=/
|
'--prefix=/ ' . // use prefix=/
|
||||||
"--libdir={$lib} " .
|
"--libdir={$lib} " .
|
||||||
'--openssldir=/System/Library/OpenSSL ' .
|
'--openssldir=/etc/ssl ' .
|
||||||
"darwin64-{$this->builder->getOption('arch')}-cc"
|
"darwin64-{$this->builder->getOption('arch')}-cc"
|
||||||
)
|
)
|
||||||
->exec('make clean')
|
->exec('make clean')
|
||||||
|
|||||||
@@ -4,3 +4,4 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
assert(function_exists('openssl_digest'));
|
assert(function_exists('openssl_digest'));
|
||||||
assert(openssl_digest('123456', 'md5') === 'e10adc3949ba59abbe56e057f20f883e');
|
assert(openssl_digest('123456', 'md5') === 'e10adc3949ba59abbe56e057f20f883e');
|
||||||
|
assert(file_get_contents('https://example.com/') !== false);
|
||||||
|
|||||||
@@ -35,12 +35,12 @@ $no_strip = false;
|
|||||||
$upx = false;
|
$upx = false;
|
||||||
|
|
||||||
// prefer downloading pre-built packages to speed up the build process
|
// prefer downloading pre-built packages to speed up the build process
|
||||||
$prefer_pre_built = true;
|
$prefer_pre_built = false;
|
||||||
|
|
||||||
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
|
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
|
||||||
$extensions = match (PHP_OS_FAMILY) {
|
$extensions = match (PHP_OS_FAMILY) {
|
||||||
'Linux', 'Darwin' => 'imagick',
|
'Linux', 'Darwin' => 'openssl',
|
||||||
'Windows' => 'zlib',
|
'Windows' => 'openssl',
|
||||||
};
|
};
|
||||||
|
|
||||||
// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).
|
// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).
|
||||||
|
|||||||
Reference in New Issue
Block a user