Fix imagick build for PHP 8.4

This commit is contained in:
crazywhalecc
2024-11-03 13:56:36 +08:00
committed by Jerry Ma
parent 610fb66b0c
commit 756bdbf92f
2 changed files with 50 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ class SourcePatcher
FileSystem::addSourceExtractHook('yaml', [SourcePatcher::class, 'patchYamlWin32']);
FileSystem::addSourceExtractHook('libyaml', [SourcePatcher::class, 'patchLibYaml']);
FileSystem::addSourceExtractHook('php-src', [SourcePatcher::class, 'patchImapLicense']);
FileSystem::addSourceExtractHook('ext-imagick', [SourcePatcher::class, 'patchImagickWith84']);
}
/**
@@ -383,6 +384,15 @@ class SourcePatcher
return false;
}
/**
* Patch imagick for PHP 8.4
*/
public static function patchImagickWith84(): bool
{
SourcePatcher::patchFile('imagick_php84.patch', SOURCE_PATH . '/php-src/ext/imagick');
return true;
}
/**
* Patch cli SAPI Makefile for Windows.
*