diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index cdd10ed2..7951d75c 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -447,7 +447,7 @@ if($version -lt "5.5") { } else { $enable_extensions += ('opcache') } -Enable-PhpExtension -Extension $enable_extensions -Path $php_dir +Enable-PhpExtension -Extension ($enable_extensions | Where-Object { Test-Path $ext_dir\php_$_.dll }) -Path $php_dir Add-PhpCAInfo Add-OpenSSLConf Copy-Item -Path $src\configs\pm\*.json -Destination $env:RUNNER_TOOL_CACHE