From ac55a46d2ef1f5010d8a24afe2fb52ffe3b4fb9c Mon Sep 17 00:00:00 2001 From: Laurent Laville Date: Tue, 13 Jul 2021 11:12:48 +0200 Subject: [PATCH] add new extension jsmin --- data/supported-extensions | 1 + install-php-extensions | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/data/supported-extensions b/data/supported-extensions index c44da88..f2ecd81 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -32,6 +32,7 @@ inotify 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 interbase 5.5 5.6 7.0 7.1 7.2 7.3 intl 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 ioncube_loader 5.5 5.6 7.0 7.1 7.2 7.3 7.4 +jsmin 5.5 5.6 7.0 7.1 7.2 7.3 7.4 json_post 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 ldap 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 lzf 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 diff --git a/install-php-extensions b/install-php-extensions index 7614e60..be283bd 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1770,6 +1770,13 @@ installRemoteModule() { cp "$installRemoteModule_src/$installRemoteModule_so" "$(getPHPExtensionsDir)/$installRemoteModule_module.so" installRemoteModule_manuallyInstalled=1 ;; + jsmin) + if test -z "$installRemoteModule_version"; then + if test $PHP_MAJMIN_VERSION -lt 700; then + installRemoteModule_version=2.0.1 + fi + fi + ;; lzf) if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" '1.5.0') -ge 0; then # Sacrifice speed in favour of compression ratio?