Add openssl version getter for Windows, test openssl

This commit is contained in:
crazywhalecc
2025-07-30 23:23:12 +08:00
parent 5f5d934d58
commit af10cacdff
7 changed files with 72 additions and 27 deletions

View File

@@ -36,4 +36,17 @@ class openssl extends Extension
}
return $args;
}
public function getWindowsConfigureArg(bool $shared = false): string
{
$args = '--with-openssl';
if (
$this->builder->getPHPVersionID() >= 80500 &&
($ver = $this->builder->getLib('openssl')->getLibVersion()) &&
version_compare($ver, '3.2.0', '>=')
) {
$args .= ' --with-openssl-argon2';
}
return $args;
}
}