From eaa5a951687766e2a9cb29e844deff9106ca85bf Mon Sep 17 00:00:00 2001 From: Malin Date: Mon, 9 Feb 2026 11:55:39 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20make=20lsphp=20opcache=20conditional=20?= =?UTF-8?q?=E2=80=94=20not=20available=20for=20PHP=208.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lsphp85-opcache doesn't exist in the LiteSpeed repo (opcache is bundled in the base lsphp85 package). Only add opcache as a separate package for PHP 7.4-8.4. Co-Authored-By: Claude Opus 4.6 --- wo/core/variables.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wo/core/variables.py b/wo/core/variables.py index aff8d54..f60115a 100644 --- a/wo/core/variables.py +++ b/wo/core/variables.py @@ -147,9 +147,13 @@ class WOVar(): short_ver = version_number.replace('.', '') wo_module = ["common", "curl", "igbinary", "imagick", "intl", "memcached", "msgpack", - "mysql", "opcache", "pear", "redis", + "mysql", "pear", "redis", "snmp", "sqlite3", "tidy"] + # opcache is a separate package only on older PHP versions + if version_number in ('7.4', '8.0', '8.1', '8.2', '8.3', '8.4'): + wo_module.append("opcache") + # lsphp packages: lsphpXX, lsphpXX-common, lsphpXX-curl, etc. php_modules = ["lsphp{0}".format(short_ver)] php_modules.extend(["lsphp{0}-{1}".format(short_ver, module) for module in wo_module])