From e19c22c1891bc97aabbe0cc0cd0efdb6b1a9fc0d Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 7 Oct 2019 18:27:02 +0200 Subject: [PATCH] sqlsrv/pdo_sqlsrv: fix PHP < 7.1, add support for PHP 7.3 --- data/supported-extensions | 4 ++-- install-php-extensions | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/data/supported-extensions b/data/supported-extensions index 3e92f68..77c20f5 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -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 diff --git a/install-php-extensions b/install-php-extensions index ef55503..f19b6db 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -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"