fix: align LSPHP module list with actual OLS repo packages
Some checks failed
CI / test WordOps (ubuntu-22.04) (push) Has been cancelled
CI / test WordOps (ubuntu-24.04) (push) Has been cancelled

LSPHP packages don't have separate gd, mbstring, xml, zip, soap,
imap modules - these are bundled in lsphp-common. Updated module
list to only include packages that exist in the OLS repository:
common, curl, igbinary, imagick, intl, memcached, msgpack, mysql,
opcache, pear, redis, snmp, sqlite3, tidy.

Also update default PHP version to 8.5.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-09 11:51:26 +01:00
parent 0c20a10efd
commit 06352bbc30
3 changed files with 9 additions and 7 deletions

View File

@@ -79,7 +79,7 @@ keylength = "ec-384"
[php]
### Default PHP version
version = 8.3
version = 8.5
[mariadb]

View File

@@ -773,7 +773,7 @@ wo_woconf() {
echo -e '\n[letsencrypt]\n\nkeylength = "ec-384"' >>/etc/wo/wo.conf
fi
if ! grep -q "php" /etc/wo/wo.conf; then
echo -e '\n[php]\n\nversion = 8.2' >>/etc/wo/wo.conf
echo -e '\n[php]\n\nversion = 8.5' >>/etc/wo/wo.conf
fi
fi
}

View File

@@ -141,12 +141,14 @@ class WOVar():
def generate_lsphp_modules(version_prefix, version_number):
"""Generate LSPHP module package list for a given PHP version.
LSPHP packages use lsphpXX- naming (no dot in version)."""
LSPHP packages use lsphpXX- naming (no dot in version).
Note: gd, mbstring, xml, zip, soap, imap are bundled in
lsphp-common and do not have separate packages."""
short_ver = version_number.replace('.', '')
wo_module = ["common", "curl", "gd", "igbinary",
"imagick", "imap", "intl", "mbstring", "memcached", "msgpack",
"mysql", "opcache", "redis", "soap",
"xml", "zip"]
wo_module = ["common", "curl", "igbinary",
"imagick", "intl", "memcached", "msgpack",
"mysql", "opcache", "pear", "redis",
"snmp", "sqlite3", "tidy"]
# lsphp packages: lsphpXX, lsphpXX-common, lsphpXX-curl, etc.
php_modules = ["lsphp{0}".format(short_ver)]