From d97b3754a8db2a1e6f7416f52eeb47d389de7690 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 1 Dec 2024 06:10:56 +0530 Subject: [PATCH] Fix fetching libraries on old PHP on Windows --- src/scripts/win32.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index 4bfc607e..3b830fb9 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -434,7 +434,7 @@ if($installed.MajorMinorVersion -ne $version) { Write-Error "Could not setup PHP $version" -ErrorAction Stop } if($version -lt "5.5") { - ('libeay32.dll', 'ssleay32.dll') | ForEach-Object -Parallel { Get-File -Url "$using:php_builder/releases/download/openssl-1.0.2u/$_" -OutFile $using:php_dir\$_ >$null 2>&1 } + ('libeay32.dll', 'ssleay32.dll') | ForEach-Object -Parallel { Invoke-WebRequest -Uri "$using:php_builder/releases/download/openssl-1.0.2u/$_" -OutFile $using:php_dir\$_ >$null 2>&1 } } else { $enable_extensions += ('opcache') }