1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-08 16:17:20 +00:00

Add support for sqlsrv/pdo_sqlsrv with PHP 8.0

This commit is contained in:
Michele Locati 2021-01-16 21:01:03 +01:00
parent fa903d9549
commit 7476e5eb48
No known key found for this signature in database
GPG key ID: 98B7CE2E7234E28B
2 changed files with 8 additions and 4 deletions

View file

@ -1642,10 +1642,14 @@ installRemoteModule() {
pdo_sqlsrv | sqlsrv)
if test -z "$installRemoteModule_version"; then
# https://docs.microsoft.com/it-it/sql/connect/php/system-requirements-for-the-php-sql-driver?view=sql-server-2017
if test $PHP_MAJMIN_VERSION -le 700; then
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=3.0.1
elif test $PHP_MAJMIN_VERSION -le 700; then
installRemoteModule_version=5.3.0
elif test $PHP_MAJMIN_VERSION -le 701; then
installRemoteModule_version=5.6.1
elif test $PHP_MAJMIN_VERSION -le 702; then
installRemoteModule_version=5.8.1
fi
fi
;;
@ -2098,7 +2102,7 @@ configureInstaller() {
if ! stringInList 'zip' "$PHP_PREINSTALLED_MODULES"; then
PHP_MODULES_TO_INSTALL="zip $(removeStringFromList 'zip' "$PHP_MODULES_TO_INSTALL")"
fi
if anyStringInList 'swoole xdebug xhprof' "$PHP_MODULES_TO_INSTALL"; then
if anyStringInList 'swoole xdebug xhprof pdo_sqlsrv sqlsrv' "$PHP_MODULES_TO_INSTALL"; then
USE_PICKLE=2
else
curl -sSLf https://github.com/FriendsOfPHP/pickle/releases/latest/download/pickle.phar -o /tmp/pickle