From a83d4379b1200b3d0d19ad4fe0d7a440e00749c1 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 19 Jan 2021 20:36:17 +0530 Subject: [PATCH] Fix pcov on PHP 8.0 on Windows --- src/scripts/win32.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index d3ff1dcd..bbdc192d 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -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