mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-06 19:05:56 +01:00
refactor(php): remove redundant PHP_MODULE entries
- Add dom and gmp to BASE_MODULES in setup_php() - Remove modules already covered by BASE_MODULES (cli,common,bcmath,curl,dom,gd,gmp,intl,mbstring,readline,xml,zip) - Remove modules already covered by EXTENDED_MODULES (mysql,sqlite3,pgsql,redis,imagick,bz2,apcu) - Remove modules already covered by BUILTIN (ctype,exif,ffi,fileinfo,gettext,iconv,pdo,tokenizer) - Affected: 31 install scripts, 12 ct scripts
This commit is contained in:
@@ -4512,7 +4512,7 @@ function setup_php() {
|
||||
|
||||
# Base modules - essential for most PHP applications
|
||||
# Note: 'common' provides many built-in extensions
|
||||
local BASE_MODULES="cli,common,bcmath,curl,gd,intl,mbstring,readline,xml,zip"
|
||||
local BASE_MODULES="cli,common,bcmath,curl,dom,gd,gmp,intl,mbstring,readline,xml,zip"
|
||||
|
||||
# Add opcache only for PHP < 8.5 (it's built-in starting from 8.5)
|
||||
if [[ "$PHP_MAJOR" -lt 8 ]] || [[ "$PHP_MAJOR" -eq 8 && "$PHP_MINOR" -lt 5 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user