1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-09 00:22:40 +00:00

Support more extensions for PHP 5.5

This commit is contained in:
Michele Locati 2020-02-03 08:26:38 +01:00
parent c575205c7c
commit c2e185457f
No known key found for this signature in database
GPG key ID: 98B7CE2E7234E28B
2 changed files with 41 additions and 36 deletions

View file

@ -876,26 +876,22 @@ installBundledModule() {
esac
;;
mssql | pdo_dblib)
case "$1" in
506 | 700 | 701 | 702 | 703 | 704)
if ! test -f /usr/lib/libsybdb.so; then
ln -s /usr/lib/x86_64-linux-gnu/libsybdb.so /usr/lib/libsybdb.so
UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS /usr/lib/libsybdb.so"
fi
;;
esac
if test $1 -le 704; then
if ! test -f /usr/lib/libsybdb.so; then
ln -s /usr/lib/x86_64-linux-gnu/libsybdb.so /usr/lib/libsybdb.so
UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS /usr/lib/libsybdb.so"
fi
fi
;;
odbc)
case "$1" in
506 | 700 | 701 | 702 | 703 | 704)
docker-php-source extract
cd /usr/src/php/ext/odbc
phpize
sed -ri 's@^ *test +"\$PHP_.*" *= *"no" *&& *PHP_.*=yes *$@#&@g' configure
./configure --with-unixODBC=shared,/usr
cd - >/dev/null
;;
esac
if test $1 -le 704; then
docker-php-source extract
cd /usr/src/php/ext/odbc
phpize
sed -ri 's@^ *test +"\$PHP_.*" *= *"no" *&& *PHP_.*=yes *$@#&@g' configure
./configure --with-unixODBC=shared,/usr
cd - >/dev/null
fi
;;
pdo_odbc)
docker-php-ext-configure pdo_odbc --with-pdo-odbc=unixODBC,/usr
@ -1078,6 +1074,11 @@ installPECLModule() {
# --with-mongo-sasl (default: no) Build with Cyrus SASL (MongoDB Enterprise Authentication) support?
installPECLModule_stdin="${installPECLModule_stdin}yes\n"
;;
mongodb)
if test $1 -le 505; then
installPECLModule_actual="$2-1.5.5"
fi
;;
msgpack)
if test $1 -le 506; then
installPECLModule_actual="$2-0.5.7"
@ -1131,20 +1132,24 @@ installPECLModule() {
fi
;;
rdkafka)
installPECLModule_tmp=
case "$(getDistro)" in
alpine)
installPECLModule_tmp='librdkafka'
;;
debian)
installPECLModule_tmp='librdkafka*'
;;
esac
if test -n "$installPECLModule_tmp"; then
installPECLModule_tmp="$(getInstalledPackageVersion "$installPECLModule_tmp")"
if test $1 -le 505; then
installPECLModule_actual="$2-3.0.5"
else
installPECLModule_tmp=
case "$(getDistro)" in
alpine)
installPECLModule_tmp='librdkafka'
;;
debian)
installPECLModule_tmp='librdkafka*'
;;
esac
if test -n "$installPECLModule_tmp"; then
if test $(compareVersions "$installPECLModule_tmp" '0.11.0') -lt 0; then
installPECLModule_actual="$2-3.1.3"
installPECLModule_tmp="$(getInstalledPackageVersion "$installPECLModule_tmp")"
if test -n "$installPECLModule_tmp"; then
if test $(compareVersions "$installPECLModule_tmp" '0.11.0') -lt 0; then
installPECLModule_actual="$2-3.1.3"
fi
fi
fi
fi