mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
Fix support for sqlsrv and pdo_sqlsrv extensions
This commit is contained in:
parent
db8db3c7c7
commit
3d8c10397e
@ -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'
|
||||
}
|
||||
|
@ -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 ''
|
||||
|
Loading…
Reference in New Issue
Block a user