File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ if($ThreadSafe) {
36
36
$branch = ' master'
37
37
if ($Version -eq ' 8.0' ) {
38
38
$branch = ' PHP-8.0'
39
- } elseif ($Version -eq ' 8.0 ' ) {
39
+ } elseif ($Version -eq ' 8.1 ' ) {
40
40
$branch = ' PHP-8.1'
41
41
}
42
42
$semver = Invoke-RestMethod https:// raw.githubusercontent.com / php/ php- src/ $branch / main/ php_version.h | Where-Object { $_ -match ' PHP_VERSION "(.*)"' } | Foreach-Object {$Matches [1 ]}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ $ts = '-nts'
33
33
if ($ThreadSafe ) {
34
34
$ts = ' '
35
35
}
36
- if ($Version -eq ' 8.0 ' ) {
36
+ if ($Version -match ' 8.[0-1] ' ) {
37
37
Install-Php - Version $Version - Architecture $Architecture - ThreadSafe $ThreadSafe - InstallVC - Path $Path - TimeZone UTC - InitialPhpIni Production - Force
38
38
} else {
39
39
Invoke-WebRequest - UseBasicParsing - Uri " https://github.com/shivammathur/php-builder-windows/releases/download/php$Version /php-$Version .0-dev$ts -Win32-vs16-$Architecture .zip" - OutFile $Path \master.zip
You can’t perform that action at this time.
0 commit comments