Fix support for sqlsrv and pdo_sqlsrv extensions

This commit is contained in:
Shivam Mathur 2024-03-25 03:10:43 +05:30
parent db8db3c7c7
commit 3d8c10397e
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
2 changed files with 4 additions and 0 deletions

View File

@ -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'
}

View File

@ -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 ''