Merge pull request #2685 from aaly00/sqlsrv-workspace

Workspace SQLSRV PHP7.1 Support
This commit is contained in:
Shao Yu-Lung (Allen) 2020-09-04 09:24:42 +08:00 committed by GitHub
commit e3dab0061a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1003,8 +1003,10 @@ RUN set -eux; \
ln -sfn /opt/mssql-tools/bin/bcp /usr/bin/bcp && \
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen && \
if [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70000" ]; then \
pecl install sqlsrv-5.3.0 pdo_sqlsrv-5.3.0 \
;elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70100" ]; then \
pecl install sqlsrv-5.6.1 pdo_sqlsrv-5.6.1 \
;else \
pecl install sqlsrv pdo_sqlsrv \
;fi && \