Merge pull request #33 from mlocati/sqlsrv

sqlsrv/pdo_sqlsrv: fix PHP < 7.1, add support for PHP 7.3
pull/34/head
Michele Locati 2019-10-07 18:32:50 +02:00 committed by GitHub
commit 9850fedeca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -30,7 +30,7 @@ pdo_firebird 5.6 7.0 7.1 7.2 7.3
pdo_mysql 5.6 7.0 7.1 7.2 7.3
pdo_odbc 5.6 7.0 7.1 7.2 7.3
pdo_pgsql 5.6 7.0 7.1 7.2 7.3
pdo_sqlsrv 7.0 7.1 7.2
pdo_sqlsrv 7.0 7.1 7.2 7.3
pgsql 5.6 7.0 7.1 7.2 7.3
pspell 5.6 7.0 7.1 7.2 7.3
pthreads 5.6 7.0
@ -41,7 +41,7 @@ snmp 5.6 7.0 7.1 7.2 7.3
soap 5.6 7.0 7.1 7.2 7.3
sockets 5.6 7.0 7.1 7.2 7.3
solr 5.6 7.0 7.1
sqlsrv 7.0 7.1 7.2
sqlsrv 7.0 7.1 7.2 7.3
ssh2 5.6 7.0 7.1 7.2
sybase_ct 5.6
sysvmsg 5.6 7.0 7.1 7.2 7.3

View File

@ -439,6 +439,12 @@ installPECLModule () {
installPECLModule_actual="${2}-0.9.0"
fi
;;
pdo_sqlsrv | sqlsrv)
# https://docs.microsoft.com/it-it/sql/connect/php/system-requirements-for-the-php-sql-driver?view=sql-server-2017
if test $1 -le 700; then
installPECLModule_actual="${2}-5.3.0"
fi
;;
pthreads)
if test $1 -lt 700; then
installPECLModule_actual="${2}-2.0.10"