From dcf2f7f74fb211eb62700d1f551791e2960c702a Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Thu, 27 Jan 2022 06:36:42 +0530 Subject: [PATCH] Fetch SSL libs for old PHP in Windows in parallel --- 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 6264db61..112d97f1 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -307,7 +307,7 @@ if($installed.MajorMinorVersion -ne $version) { exit 1 } if($version -lt "5.5") { - ('libeay32.dll', 'ssleay32.dll') | ForEach-Object { Invoke-WebRequest -Uri "$php_builder/releases/download/openssl-1.0.2u/$_" -OutFile $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') }