mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Remove redundant patches for openssl
This commit is contained in:
parent
f1a9a28ed7
commit
b644da8210
@ -5,23 +5,11 @@ declare(strict_types=1);
|
|||||||
namespace SPC\builder\extension;
|
namespace SPC\builder\extension;
|
||||||
|
|
||||||
use SPC\builder\Extension;
|
use SPC\builder\Extension;
|
||||||
use SPC\store\FileSystem;
|
|
||||||
use SPC\util\CustomExt;
|
use SPC\util\CustomExt;
|
||||||
|
|
||||||
#[CustomExt('openssl')]
|
#[CustomExt('openssl')]
|
||||||
class openssl extends Extension
|
class openssl extends Extension
|
||||||
{
|
{
|
||||||
public function patchBeforeBuildconf(): bool
|
|
||||||
{
|
|
||||||
// Fix php 8.5 alpha1~4 zts openssl build bug
|
|
||||||
FileSystem::replaceFileStr(
|
|
||||||
SOURCE_PATH . '/php-src/ext/openssl/config.w32',
|
|
||||||
'WARNING("OpenSSL argon2 hashing not supported in ZTS mode for now");',
|
|
||||||
'AC_DEFINE("HAVE_OPENSSL_ARGON2", 1, "Define to 1 to enable OpenSSL argon2 password hashing.");'
|
|
||||||
);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function patchBeforeMake(): bool
|
public function patchBeforeMake(): bool
|
||||||
{
|
{
|
||||||
$patched = parent::patchBeforeMake();
|
$patched = parent::patchBeforeMake();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user