mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +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'
|
return '5.9.0'
|
||||||
} elseif ($version -eq '7.4') {
|
} elseif ($version -eq '7.4') {
|
||||||
return '5.10.1'
|
return '5.10.1'
|
||||||
|
} elseif ($version -eq '8.0') {
|
||||||
|
return '5.11.1'
|
||||||
} else {
|
} else {
|
||||||
return 'latest'
|
return 'latest'
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,8 @@ get_sqlsrv_version() {
|
|||||||
echo '5.9.0'
|
echo '5.9.0'
|
||||||
elif [[ "${version:?}" =~ 7.4 ]]; then
|
elif [[ "${version:?}" =~ 7.4 ]]; then
|
||||||
echo '5.10.1'
|
echo '5.10.1'
|
||||||
|
elif [[ "${version:?}" =~ 8.0 ]]; then
|
||||||
|
echo '5.11.1'
|
||||||
else
|
else
|
||||||
# Return an empty string so that pecl will install the latest version.
|
# Return an empty string so that pecl will install the latest version.
|
||||||
echo ''
|
echo ''
|
||||||
|
Loading…
Reference in New Issue
Block a user