mirror of
https://github.com/mlocati/docker-php-extension-installer
synced 2025-05-09 00:22:40 +00:00
[minor] Sort sqlsrv/pdo_sqlsrv
This commit is contained in:
parent
9bf577c607
commit
c955fe4949
2 changed files with 23 additions and 23 deletions
|
@ -1817,23 +1817,6 @@ installRemoteModule() {
|
|||
fi
|
||||
fi
|
||||
;;
|
||||
pdo_sqlsrv | sqlsrv)
|
||||
if test -z "$installRemoteModule_version"; then
|
||||
# https://docs.microsoft.com/it-it/sql/connect/php/system-requirements-for-the-php-sql-driver?view=sql-server-2017
|
||||
if test $PHP_MAJMIN_VERSION -le 506; then
|
||||
installRemoteModule_version=3.0.1
|
||||
elif test $PHP_MAJMIN_VERSION -le 700; then
|
||||
installRemoteModule_version=5.3.0
|
||||
elif test $PHP_MAJMIN_VERSION -le 701; then
|
||||
installRemoteModule_version=5.6.1
|
||||
elif test $PHP_MAJMIN_VERSION -le 702; then
|
||||
installRemoteModule_version=5.8.1
|
||||
fi
|
||||
fi
|
||||
if ! isMicrosoftSqlServerODBCInstalled; then
|
||||
installMicrosoftSqlServerODBC
|
||||
fi
|
||||
;;
|
||||
propro)
|
||||
if test -z "$installRemoteModule_version"; then
|
||||
if test $PHP_MAJMIN_VERSION -le 506; then
|
||||
|
@ -1947,6 +1930,23 @@ installRemoteModule() {
|
|||
fi
|
||||
fi
|
||||
;;
|
||||
sqlsrv | pdo_sqlsrv)
|
||||
if test -z "$installRemoteModule_version"; then
|
||||
# https://docs.microsoft.com/it-it/sql/connect/php/system-requirements-for-the-php-sql-driver?view=sql-server-2017
|
||||
if test $PHP_MAJMIN_VERSION -le 506; then
|
||||
installRemoteModule_version=3.0.1
|
||||
elif test $PHP_MAJMIN_VERSION -le 700; then
|
||||
installRemoteModule_version=5.3.0
|
||||
elif test $PHP_MAJMIN_VERSION -le 701; then
|
||||
installRemoteModule_version=5.6.1
|
||||
elif test $PHP_MAJMIN_VERSION -le 702; then
|
||||
installRemoteModule_version=5.8.1
|
||||
fi
|
||||
fi
|
||||
if ! isMicrosoftSqlServerODBCInstalled; then
|
||||
installMicrosoftSqlServerODBC
|
||||
fi
|
||||
;;
|
||||
ssh2)
|
||||
if test -z "$installRemoteModule_version"; then
|
||||
if test $PHP_MAJMIN_VERSION -le 506; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue