Skip to content

Commit 8925e97

Browse files
authored
Fix windows setup-runtime php download link (#650)
1 parent 4558204 commit 8925e97

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/setup-runtime.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ if ($action -eq 'add-path') {
5151
}
5252

5353
# get php 8.1 specific version
54-
$API = (Invoke-WebRequest -Uri "https://www.php.net/releases/index.php?json&version=8.4") | ConvertFrom-Json
5554

5655
# php windows download
57-
$PHPRuntimeUrl = "https://windows.php.net/downloads/releases/php-" + $API.version + "-nts-Win32-vs16-x64.zip"
56+
$PHPRuntimeUrl = "https://windows.php.net/downloads/releases/archives/php-8.4.4-nts-Win32-vs17-x64.zip"
57+
Write-Host "Downloading PHP from: " -NoNewline
58+
Write-Host $PHPRuntimeUrl -ForegroundColor Cyan
5859
$ComposerUrl = "https://getcomposer.org/download/latest-stable/composer.phar"
5960

6061
# create dir

0 commit comments

Comments
 (0)