Chore: extension fixes

clickhouse, mongodb, opcache, password-argon2, pgsql, spx
This commit is contained in:
crazywhalecc
2026-05-24 18:16:47 +08:00
parent df26b93e58
commit 82b77af317
6 changed files with 28 additions and 18 deletions

View File

@@ -72,6 +72,10 @@ class opcache extends PhpExtensionPackage
) {
$opcache_jit = ' --disable-opcache-jit';
}
return '--enable-opcache' . ($shared ? '=shared' : '') . $opcache_jit;
// PHP 8.5+ has opcache built-in
if ($phpVersionID < 80500) {
return '--enable-opcache' . ($shared ? '=shared' : '') . $opcache_jit;
}
return trim($opcache_jit);
}
}