Skip to content

Commit dbdb32b

Browse files
authored
Update scripts for PHP 8.1.0
1 parent 0a74c16 commit dbdb32b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/Get-Php.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if($ThreadSafe) {
3636
$branch = 'master'
3737
if($Version -eq '8.0') {
3838
$branch = 'PHP-8.0'
39-
} elseif($Version -eq '8.0') {
39+
} elseif($Version -eq '8.1') {
4040
$branch = 'PHP-8.1'
4141
}
4242
$semver = Invoke-RestMethod https://raw.githubusercontent.com/php/php-src/$branch/main/php_version.h | Where-Object { $_ -match 'PHP_VERSION "(.*)"' } | Foreach-Object {$Matches[1]}

scripts/Get-PhpNightly.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $ts = '-nts'
3333
if($ThreadSafe) {
3434
$ts = ''
3535
}
36-
if($Version -eq '8.0') {
36+
if($Version -match '8.[0-1]') {
3737
Install-Php -Version $Version -Architecture $Architecture -ThreadSafe $ThreadSafe -InstallVC -Path $Path -TimeZone UTC -InitialPhpIni Production -Force
3838
} else {
3939
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

0 commit comments

Comments
 (0)