mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
Add argon2 support for PHP-NTS < 8.5
This commit is contained in:
parent
3c09ba59d7
commit
ea4905cd0d
@ -28,7 +28,7 @@ class openssl extends Extension
|
|||||||
{
|
{
|
||||||
$openssl_dir = $this->builder->getPHPVersionID() >= 80400 ? '' : ' --with-openssl-dir=' . BUILD_ROOT_PATH;
|
$openssl_dir = $this->builder->getPHPVersionID() >= 80400 ? '' : ' --with-openssl-dir=' . BUILD_ROOT_PATH;
|
||||||
$args = '--with-openssl=' . ($shared ? 'shared,' : '') . BUILD_ROOT_PATH . $openssl_dir;
|
$args = '--with-openssl=' . ($shared ? 'shared,' : '') . BUILD_ROOT_PATH . $openssl_dir;
|
||||||
if ($this->builder->getPHPVersionID() >= 80500) {
|
if ($this->builder->getPHPVersionID() >= 80500 || !$this->builder->getOption('enable-zts')) {
|
||||||
$args .= ' --with-openssl-argon2 OPENSSL_LIBS="-lz"';
|
$args .= ' --with-openssl-argon2 OPENSSL_LIBS="-lz"';
|
||||||
}
|
}
|
||||||
return $args;
|
return $args;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user