Enable ext-curl on windows

This commit is contained in:
Shivam Mathur 2019-10-22 22:56:27 +05:30
parent 3315fa09dc
commit 57a0907a18
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -39,8 +39,9 @@ Add-Content C:\tools\php\php.ini "date.timezone = 'UTC'"
Set-PhpIniKey extension_dir $ext_dir Set-PhpIniKey extension_dir $ext_dir
if($version -lt '7.4') { if($version -lt '7.4') {
Enable-PhpExtension openssl Enable-PhpExtension openssl
Enable-PhpExtension curl
} else { } else {
Add-Content C:\tools\php\php.ini "extension=php_openssl.dll" Add-Content C:\tools\php\php.ini "extension=php_openssl.dll`nextension=php_curl.dll"
Copy-Item "php_pcov.dll" -Destination $ext_dir"\php_pcov.dll" Copy-Item "php_pcov.dll" -Destination $ext_dir"\php_pcov.dll"
} }
Add-Log $tick "PHP" $status Add-Log $tick "PHP" $status