Skip to content

Commit

Permalink
Fix pcov on PHP 8.0 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Jan 19, 2021
1 parent fbc8407 commit a83d437
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scripts/win32.ps1
Expand Up @@ -425,6 +425,10 @@ if($version -lt "5.5") {
} else {
$enable_extensions += ('opcache')
}
# Patch till there is a pcov DLL for PHP 8.0 on pecl
if ($version -eq '8.0') {
Invoke-WebRequest -Uri "https://github.com/shivammathur/php-extensions-windows/releases/latest/download/php$version`_$env:PHPTS`_$arch`_pcov.dll" -OutFile $php_dir"\ext\php`_pcov.dll"
}
Enable-PhpExtension -Extension $enable_extensions -Path $php_dir
Update-PhpCAInfo -Path $php_dir -Source $cert_source
Copy-Item -Path $dist\..\src\configs\*.json -Destination $env:RUNNER_TOOL_CACHE
Expand Down

0 comments on commit a83d437

Please sign in to comment.