Skip to content

Commit

Permalink
Update scripts for PHP 8.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur authored Nov 24, 2021
1 parent 0a74c16 commit dbdb32b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/Get-Php.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if($ThreadSafe) {
$branch = 'master'
if($Version -eq '8.0') {
$branch = 'PHP-8.0'
} elseif($Version -eq '8.0') {
} elseif($Version -eq '8.1') {
$branch = 'PHP-8.1'
}
$semver = Invoke-RestMethod https://raw.githubusercontent.com/php/php-src/$branch/main/php_version.h | Where-Object { $_ -match 'PHP_VERSION "(.*)"' } | Foreach-Object {$Matches[1]}
Expand Down
2 changes: 1 addition & 1 deletion scripts/Get-PhpNightly.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $ts = '-nts'
if($ThreadSafe) {
$ts = ''
}
if($Version -eq '8.0') {
if($Version -match '8.[0-1]') {
Install-Php -Version $Version -Architecture $Architecture -ThreadSafe $ThreadSafe -InstallVC -Path $Path -TimeZone UTC -InitialPhpIni Production -Force
} else {
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
Expand Down

0 comments on commit dbdb32b

Please sign in to comment.