From 3d8c10397e6b20bedecf8127ee9a76060fb79331 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 25 Mar 2024 03:10:43 +0530 Subject: [PATCH] Fix support for sqlsrv and pdo_sqlsrv extensions --- src/scripts/extensions/sqlsrv.ps1 | 2 ++ src/scripts/extensions/sqlsrv.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/scripts/extensions/sqlsrv.ps1 b/src/scripts/extensions/sqlsrv.ps1 index 00ae5df80..f158f5035 100644 --- a/src/scripts/extensions/sqlsrv.ps1 +++ b/src/scripts/extensions/sqlsrv.ps1 @@ -7,6 +7,8 @@ Function Get-SqlsrvReleaseVersion() { return '5.9.0' } elseif ($version -eq '7.4') { return '5.10.1' + } elseif ($version -eq '8.0') { + return '5.11.1' } else { return 'latest' } diff --git a/src/scripts/extensions/sqlsrv.sh b/src/scripts/extensions/sqlsrv.sh index 0b47c12be..4d7eac210 100644 --- a/src/scripts/extensions/sqlsrv.sh +++ b/src/scripts/extensions/sqlsrv.sh @@ -4,6 +4,8 @@ get_sqlsrv_version() { echo '5.9.0' elif [[ "${version:?}" =~ 7.4 ]]; then echo '5.10.1' + elif [[ "${version:?}" =~ 8.0 ]]; then + echo '5.11.1' else # Return an empty string so that pecl will install the latest version. echo ''