Skip to content

Commit cace504

Browse files
committed
Workaround for windows openssl temporarily
1 parent efa47af commit cace504

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/SPC/builder/extension/openssl.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,22 @@
55
namespace SPC\builder\extension;
66

77
use SPC\builder\Extension;
8+
use SPC\store\FileSystem;
89
use SPC\util\CustomExt;
910

1011
#[CustomExt('openssl')]
1112
class openssl extends Extension
1213
{
14+
public function patchBeforeBuildconf(): bool
15+
{
16+
// Fix php 8.5 alpha1~4 zts openssl build bug
17+
FileSystem::replaceFileStr(SOURCE_PATH . '/php-src/ext/openssl/config.m4',
18+
'WARNING("OpenSSL argon2 hashing not supported in ZTS mode for now");',
19+
'AC_DEFINE("HAVE_OPENSSL_ARGON2", 1, "Define to 1 to enable OpenSSL argon2 password hashing.");'
20+
);
21+
return true;
22+
}
23+
1324
public function patchBeforeMake(): bool
1425
{
1526
$patched = parent::patchBeforeMake();

0 commit comments

Comments
 (0)