From 97cf0581e3377d1233831c37f7fa2fb8311e794f Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 28 Jul 2025 12:22:12 +0530 Subject: [PATCH] Filter shared extensions to enable on Windows --- src/scripts/win32.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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