mirror of
https://github.com/danog/docker-php-extension-installer.git
synced 2024-12-02 17:38:21 +01:00
Fix installing sqlsrv/pdo_sqlsrv on PHP 7.3 and PHP 8.1 (#502)
This commit is contained in:
parent
22276358bd
commit
75d28db7f4
@ -2569,20 +2569,8 @@ installRemoteModule() {
|
|||||||
installRemoteModule_version=5.6.1
|
installRemoteModule_version=5.6.1
|
||||||
elif test $PHP_MAJMIN_VERSION -le 702; then
|
elif test $PHP_MAJMIN_VERSION -le 702; then
|
||||||
installRemoteModule_version=5.8.1
|
installRemoteModule_version=5.8.1
|
||||||
elif test $PHP_MAJMIN_VERSION -ge 801; then
|
elif test $PHP_MAJMIN_VERSION -le 703; then
|
||||||
# https://github.com/microsoft/msphpsql/commits/PHP-8.1-dev
|
installRemoteModule_version=5.9.0
|
||||||
installRemoteModule_src="$(getPackageSource https://codeload.github.com/microsoft/msphpsql/tar.gz/f00dc9f0c555eebaf9f1e5a9bd1a04044908bba1)"
|
|
||||||
cd -- "$installRemoteModule_src/source/$installRemoteModule_module"
|
|
||||||
if command -v bash >/dev/null; then
|
|
||||||
(cd .. && bash ./packagize.sh)
|
|
||||||
else
|
|
||||||
(cd .. && sh ./packagize.sh)
|
|
||||||
fi
|
|
||||||
phpize
|
|
||||||
./configure
|
|
||||||
make -j$(getProcessorCount) install
|
|
||||||
cd - >/dev/null
|
|
||||||
installRemoteModule_manuallyInstalled=1
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user