mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 13:23:05 +07:00
Add patch to add PHP 8.1 extensions from snaps on Windows
This commit is contained in:
parent
cf36ddc55e
commit
be75d5e01d
@ -191,7 +191,13 @@ Function Add-Extension {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$params = @{ Extension = $extension; MinimumStability = $stability; MaximumStability = $stability; Path = $php_dir; AdditionalFilesPath = $deps_dir; NoDependencies = $true }
|
# Patch till PHP 8.1 DLLs are released as stable.
|
||||||
|
$minimumStability = 'stable'
|
||||||
|
if($version -eq '8.1' -and $stability -eq 'stable') {
|
||||||
|
$minimumStability = 'snapshot'
|
||||||
|
}
|
||||||
|
|
||||||
|
$params = @{ Extension = $extension; MinimumStability = $minimumStability; MaximumStability = $stability; Path = $php_dir; AdditionalFilesPath = $deps_dir; NoDependencies = $true }
|
||||||
if($extension_version -ne '') {
|
if($extension_version -ne '') {
|
||||||
$params["Version"] = $extension_version
|
$params["Version"] = $extension_version
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user