Add support for LZF

pull/357/head
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

@ -248,6 +248,14 @@ zlib
[Zend Modules] [Zend Modules]
``` ```
## Configuration
The compilation of some extensions may be fine-tuned to better fit your needs by using environment variables:
| Extension | Environment variable | Description |
|---|---|---|
| lzf | IPE_LZF_BETTERCOMPRESSION=1 | By default `install-php-extensions` compiles the `lzf` extension to prefer speed over size; you can use this environment variable to compile it preferring size over speed |
## Special requirements ## Special requirements
Some extensions have special requirements: Some extensions have special requirements:

View File

@ -34,6 +34,7 @@ intl 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
ioncube_loader 5.5 5.6 7.0 7.1 7.2 7.3 7.4 ioncube_loader 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 json_post 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
ldap 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 ldap 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
lzf 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
mailparse 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 mailparse 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
maxminddb 7.2 7.3 7.4 8.0 maxminddb 7.2 7.3 7.4 8.0
mcrypt 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 mcrypt 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0

View File

@ -1703,6 +1703,19 @@ installRemoteModule() {
cp "$installRemoteModule_src/$installRemoteModule_so" "$(getPHPExtensionsDir)/$installRemoteModule_module.so" cp "$installRemoteModule_src/$installRemoteModule_so" "$(getPHPExtensionsDir)/$installRemoteModule_module.so"
installRemoteModule_manuallyInstalled=1 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) mailparse)
if test -z "$installRemoteModule_version"; then if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -le 506; then if test $PHP_MAJMIN_VERSION -le 506; then