Support pdo_sqlsrv and sqlsrv on PHP 8.1

pull/374/head
Michele Locati 2021-07-01 15:23:07 +02:00
parent d253bbb88d
commit 2975caeb1b
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
2 changed files with 18 additions and 5 deletions

View File

@ -61,7 +61,7 @@ pdo_mysql 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
pdo_oci 7.0 7.1 7.2 7.3 7.4 8.0 8.1
pdo_odbc 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
pdo_pgsql 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
pdo_sqlsrv 7.0 7.1 7.2 7.3 7.4 8.0
pdo_sqlsrv 7.0 7.1 7.2 7.3 7.4 8.0 8.1
pgsql 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
propro 5.5 5.6 7.0 7.1 7.2 7.3 7.4
protobuf 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
@ -79,7 +79,7 @@ snuffleupagus 7.0 7.1 7.2 7.3 7.4 8.0
soap 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
sockets 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
solr 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
sqlsrv 7.0 7.1 7.2 7.3 7.4 8.0
sqlsrv 7.0 7.1 7.2 7.3 7.4 8.0 8.1
ssh2 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
swoole 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
sybase_ct 5.5 5.6

View File

@ -1950,6 +1950,7 @@ installRemoteModule() {
fi
;;
sqlsrv | pdo_sqlsrv)
isMicrosoftSqlServerODBCInstalled || installMicrosoftSqlServerODBC
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
@ -1960,11 +1961,22 @@ installRemoteModule() {
installRemoteModule_version=5.6.1
elif test $PHP_MAJMIN_VERSION -le 702; then
installRemoteModule_version=5.8.1
elif test $PHP_MAJMIN_VERSION -ge 801; then
# https://github.com/microsoft/msphpsql/commits/PHP-8.1-dev
installRemoteModule_src="$(getPackageSource https://codeload.github.com/microsoft/msphpsql/tar.gz/f00dc9f0c555eebaf9f1e5a9bd1a04044908bba1)"
cd -- "$installRemoteModule_src/source/$installRemoteModule_module"
if command -v bash >/dev/null; then
(cd .. && bash ./packagize.sh)
else
(cd .. && sh ./packagize.sh)
fi
phpize
./configure
make -j$(getProcessorCount) install
cd - >/dev/null
installRemoteModule_manuallyInstalled=1
fi
fi
if ! isMicrosoftSqlServerODBCInstalled; then
installMicrosoftSqlServerODBC
fi
;;
ssh2)
if test -z "$installRemoteModule_version"; then
@ -2132,6 +2144,7 @@ installRemoteModule() {
cmake -D USE_SHARED_PHPCPP:BOOL=ON ..
make
make install
cd - >/dev/null
rm "$PHP_INI_DIR/conf.d/tdlib.ini"
installRemoteModule_manuallyInstalled=1
;;