Skip to content

Commit ea4905c

Browse files
committed
Add argon2 support for PHP-NTS < 8.5
1 parent 3c09ba5 commit ea4905c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SPC/builder/extension/openssl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function getUnixConfigureArg(bool $shared = false): string
2828
{
2929
$openssl_dir = $this->builder->getPHPVersionID() >= 80400 ? '' : ' --with-openssl-dir=' . BUILD_ROOT_PATH;
3030
$args = '--with-openssl=' . ($shared ? 'shared,' : '') . BUILD_ROOT_PATH . $openssl_dir;
31-
if ($this->builder->getPHPVersionID() >= 80500) {
31+
if ($this->builder->getPHPVersionID() >= 80500 || !$this->builder->getOption('enable-zts')) {
3232
$args .= ' --with-openssl-argon2 OPENSSL_LIBS="-lz"';
3333
}
3434
return $args;

0 commit comments

Comments
 (0)