From be75d5e01d0441ecbd36368bc9da3a9d39bbc6fe Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 6 Dec 2021 10:42:28 +0530 Subject: [PATCH] Add patch to add PHP 8.1 extensions from snaps on Windows --- src/scripts/win32.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index 90e42e26..28c43859 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -191,7 +191,13 @@ Function Add-Extension { } } else { - $params = @{ Extension = $extension; MinimumStability = $stability; MaximumStability = $stability; Path = $php_dir; AdditionalFilesPath = $deps_dir; NoDependencies = $true } + # Patch till PHP 8.1 DLLs are released as stable. + $minimumStability = 'stable' + if($version -eq '8.1' -and $stability -eq 'stable') { + $minimumStability = 'snapshot' + } + + $params = @{ Extension = $extension; MinimumStability = $minimumStability; MaximumStability = $stability; Path = $php_dir; AdditionalFilesPath = $deps_dir; NoDependencies = $true } if($extension_version -ne '') { $params["Version"] = $extension_version }