1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-10 00:52:45 +00:00

Add support for LZF

This commit is contained in:
Michele Locati 2021-06-19 20:58:37 +02:00
parent fbd19903cf
commit c23d3891b6
No known key found for this signature in database
GPG key ID: 98B7CE2E7234E28B
3 changed files with 22 additions and 0 deletions

View file

@ -1703,6 +1703,19 @@ installRemoteModule() {
cp "$installRemoteModule_src/$installRemoteModule_so" "$(getPHPExtensionsDir)/$installRemoteModule_module.so"
installRemoteModule_manuallyInstalled=1
;;
lzf)
if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" '1.5.0') -ge 0; then
# Sacrifice speed in favour of compression ratio?
case "${IPE_LZF_BETTERCOMPRESSION:-}" in
1 | y* | Y*)
addConfigureOption 'enable-lzf-better-compression' 'yes'
;;
*)
addConfigureOption 'enable-lzf-better-compression' 'no'
;;
esac
fi
;;
mailparse)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -le 506; then