Patch OpenSSL binaries for PHP 5.3 and 5.4 on Windows

This commit is contained in:
Shivam Mathur 2020-07-14 06:27:29 +05:30
parent 7a59874419
commit 9d042b2683
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -373,6 +373,9 @@ if ($null -eq $installed -or -not("$($installed.Version).".StartsWith(($version
$installed = Get-Php -Path $php_dir $installed = Get-Php -Path $php_dir
Set-PhpIniKey -Key 'date.timezone' -Value 'UTC' -Path $php_dir Set-PhpIniKey -Key 'date.timezone' -Value 'UTC' -Path $php_dir
if($version -lt "5.5") { 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 Enable-PhpExtension -Extension openssl, curl, mbstring -Path $php_dir
} else { } else {
Enable-PhpExtension -Extension openssl, curl, opcache, mbstring -Path $php_dir Enable-PhpExtension -Extension openssl, curl, opcache, mbstring -Path $php_dir