From ea4905cd0d57558bd5c6569f8a2ab4520572f623 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 3 Aug 2025 22:59:40 +0800 Subject: [PATCH] Add argon2 support for PHP-NTS < 8.5 --- src/SPC/builder/extension/openssl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SPC/builder/extension/openssl.php b/src/SPC/builder/extension/openssl.php index ec481b6c..c3c50a4f 100644 --- a/src/SPC/builder/extension/openssl.php +++ b/src/SPC/builder/extension/openssl.php @@ -28,7 +28,7 @@ class openssl extends Extension { $openssl_dir = $this->builder->getPHPVersionID() >= 80400 ? '' : ' --with-openssl-dir=' . BUILD_ROOT_PATH; $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"'; } return $args;