sqlsrv/pdo_sqlsrv: fix installing on PHP 8.0, update msodbcsql on Alpine (#877)

pull/881/head 2.1.82
Michele Locati 2024-02-01 15:20:41 +01:00 committed by GitHub
parent da13fc502a
commit d56469d230
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -2051,7 +2051,7 @@ installMicrosoftSqlServerODBC() {
alpine) alpine)
rm -rf /tmp/src/msodbcsql.apk rm -rf /tmp/src/msodbcsql.apk
if test $PHP_MAJMIN_VERSION -le 703; then if test $PHP_MAJMIN_VERSION -le 703; then
curl -sSLf -o /tmp/src/msodbcsql.apk https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.9.1.1-1_amd64.apk curl -sSLf -o /tmp/src/msodbcsql.apk https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.10.5.1-1_amd64.apk
else else
case $(uname -m) in case $(uname -m) in
aarch64 | arm64 | armv8) aarch64 | arm64 | armv8)
@ -2061,7 +2061,7 @@ installMicrosoftSqlServerODBC() {
installMicrosoftSqlServerODBC_arch=amd64 installMicrosoftSqlServerODBC_arch=amd64
;; ;;
esac esac
curl -sSLf -o /tmp/src/msodbcsql.apk https://download.microsoft.com/download/3/5/5/355d7943-a338-41a7-858d-53b259ea33f5/msodbcsql18_18.3.1.1-1_$installMicrosoftSqlServerODBC_arch.apk curl -sSLf -o /tmp/src/msodbcsql.apk https://download.microsoft.com/download/3/5/5/355d7943-a338-41a7-858d-53b259ea33f5/msodbcsql18_18.3.2.1-1_$installMicrosoftSqlServerODBC_arch.apk
fi fi
printf '\n' | apk add --allow-untrusted /tmp/src/msodbcsql.apk printf '\n' | apk add --allow-untrusted /tmp/src/msodbcsql.apk
rm -rf /tmp/src/msodbcsql.apk rm -rf /tmp/src/msodbcsql.apk
@ -3632,6 +3632,8 @@ installRemoteModule() {
installRemoteModule_version=5.9.0 installRemoteModule_version=5.9.0
elif test $PHP_MAJMIN_VERSION -le 704; then elif test $PHP_MAJMIN_VERSION -le 704; then
installRemoteModule_version=5.10.1 installRemoteModule_version=5.10.1
elif test $PHP_MAJMIN_VERSION -le 800; then
installRemoteModule_version=5.11.1
fi fi
fi fi
;; ;;