From dbdb32b6ffa16384344827d0d190983ae8feb39c Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 24 Nov 2021 10:48:58 +0000 Subject: [PATCH] Update scripts for PHP 8.1.0 --- scripts/Get-Php.ps1 | 2 +- scripts/Get-PhpNightly.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Get-Php.ps1 b/scripts/Get-Php.ps1 index 06790bd..1b4c85f 100644 --- a/scripts/Get-Php.ps1 +++ b/scripts/Get-Php.ps1 @@ -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]} diff --git a/scripts/Get-PhpNightly.ps1 b/scripts/Get-PhpNightly.ps1 index 1706d29..b695050 100644 --- a/scripts/Get-PhpNightly.ps1 +++ b/scripts/Get-PhpNightly.ps1 @@ -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