mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Use the curl CA list if PKI Powershell Module is not available
This commit is contained in:
parent
fec9df11d6
commit
47387dd6e9
@ -46,7 +46,11 @@ else {
|
|||||||
|
|
||||||
Set-PhpIniKey -Key 'date.timezone' -Value 'UTC' -Path $php_dir
|
Set-PhpIniKey -Key 'date.timezone' -Value 'UTC' -Path $php_dir
|
||||||
Enable-PhpExtension -Extension openssl, curl -Path $php_dir
|
Enable-PhpExtension -Extension openssl, curl -Path $php_dir
|
||||||
Update-PhpCAInfo -Path $php_dir -Source CurrentUser
|
try {
|
||||||
|
Update-PhpCAInfo -Path $php_dir -Source CurrentUser
|
||||||
|
} catch {
|
||||||
|
Update-PhpCAInfo -Path $php_dir -Source Curl
|
||||||
|
}
|
||||||
if ([Version]$installed.Version -ge '7.4') {
|
if ([Version]$installed.Version -ge '7.4') {
|
||||||
Copy-Item "$dir\..\src\ext\php_pcov.dll" -Destination "$($installed.ExtensionsPath)\php_pcov.dll"
|
Copy-Item "$dir\..\src\ext\php_pcov.dll" -Destination "$($installed.ExtensionsPath)\php_pcov.dll"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user