Merge pull request #3168 from yenhi/mssql_pecl

Fix sqlsrv latest not support PHP 7.3
This commit is contained in:
Shao Yu-Lung (Allen) 2022-03-09 21:48:29 +08:00 committed by GitHub
commit 9b41cf0d48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1081,6 +1081,8 @@ RUN set -eux; \
pecl install pdo_sqlsrv-5.6.1 sqlsrv-5.6.1 \
;elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70200" ]; then \
pecl install pdo_sqlsrv-5.8.1 sqlsrv-5.8.1 \
;elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70300" ]; then \
pecl install pdo_sqlsrv-5.9.0 sqlsrv-5.9.0 \
;else \
pecl install pdo_sqlsrv sqlsrv \
;fi && \