Fix installing sqlsrv/pdo_sqlsrv on PHP 7.3 and PHP 8.1 (#502)

This commit is contained in:
Michele Locati 2022-02-01 14:11:52 +01:00 committed by GitHub
parent 22276358bd
commit 75d28db7f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2569,20 +2569,8 @@ installRemoteModule() {
installRemoteModule_version=5.6.1
elif test $PHP_MAJMIN_VERSION -le 702; then
installRemoteModule_version=5.8.1
elif test $PHP_MAJMIN_VERSION -ge 801; then
# https://github.com/microsoft/msphpsql/commits/PHP-8.1-dev
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
elif test $PHP_MAJMIN_VERSION -le 703; then
installRemoteModule_version=5.9.0
fi
fi
;;