From 9d042b268309d7d5b80b6b07cbd32e11156e81b5 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 14 Jul 2020 06:27:29 +0530 Subject: [PATCH] Patch OpenSSL binaries for PHP 5.3 and 5.4 on Windows --- src/scripts/win32.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index 4a56ec8e..a15bd82c 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -373,6 +373,9 @@ if ($null -eq $installed -or -not("$($installed.Version).".StartsWith(($version $installed = Get-Php -Path $php_dir Set-PhpIniKey -Key 'date.timezone' -Value 'UTC' -Path $php_dir if($version -lt "5.5") { + ForEach($lib in "libeay32.dll", "ssleay32.dll") { + Invoke-WebRequest -UseBasicParsing -Uri https://dl.bintray.com/shivammathur/php/$lib -OutFile $php_dir\$lib >$null 2>&1 + } Enable-PhpExtension -Extension openssl, curl, mbstring -Path $php_dir } else { Enable-PhpExtension -Extension openssl, curl, opcache, mbstring -Path $php_dir