-
-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5bf95cd
commit 7ad352e
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -184,6 +184,17 @@ Function Add-PhpCAInfo { | |
} | ||
} | ||
|
||
# Function to set OpenSSL config. | ||
Function Add-OpenSSLConf { | ||
try { | ||
Set-OpenSSLConf -Target User | ||
} catch { | ||
New-Item $php_dir\extras\openssl.cnf -Type File -Force > $null 2>&1 | ||
Set-OpenSSLConf -Path $php_dir\extras\openssl.cnf -Target User | ||
} | ||
Add-Env -EnvName OPENSSL_CONF -EnvValue $env:OPENSSL_CONF | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
shivammathur
Author
Owner
|
||
} | ||
|
||
# Function to set PHP config. | ||
Function Add-PhpConfig { | ||
$current = Get-Content -Path $php_dir\php.ini-current -ErrorAction SilentlyContinue | ||
|
@@ -348,6 +359,7 @@ if($version -lt "5.5") { | |
} | ||
Enable-PhpExtension -Extension $enable_extensions -Path $php_dir | ||
Add-PhpCAInfo | ||
Add-OpenSSLConf | ||
Copy-Item -Path $src\configs\pm\*.json -Destination $env:RUNNER_TOOL_CACHE | ||
Set-Output php-version $($installed.FullVersion) | ||
Add-Log $tick "PHP" "$status PHP $($installed.FullVersion)$extra_version" |
IMHO this line may be superfluous:
Set-OpenSSLConf -Target User
should already set theOPENSSL_CONF
environment variable for the current user