Fix oci extension support on Windows for PHP 8.4 and above

This commit is contained in:
Shivam Mathur
2024-12-28 02:07:42 +05:30
parent 96fb539134
commit 5bb2eed0aa
2 changed files with 14 additions and 14 deletions

View File

@ -136,6 +136,10 @@ Function Add-Extension {
{
$params["Version"] = $extension_version
}
# If extension for a different version exists
if(Test-Path $ext_dir\php_$extension.dll) {
Move-Item $ext_dir\php_$extension.dll $ext_dir\php_$extension.bak.dll -Force
}
Install-PhpExtension @params
Set-ExtensionPrerequisites $extension
}