Remove check for php_micro.c file existence in SourcePatcher

This commit is contained in:
crazywhalecc 2026-03-12 15:08:02 +08:00
parent c7f611fe80
commit 6f372a74a2
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -209,9 +209,6 @@ class SourcePatcher
$patch_dir = $tmp_dir;
}
$php_package = PackageLoader::getTargetPackage('php');
if (!file_exists("{$php_package->getSourceDir()}/sapi/micro/php_micro.c")) {
return false;
}
$ver_file = "{$php_package->getSourceDir()}/main/php_version.h";
if (!file_exists($ver_file)) {
throw new PatchException('php-src patcher (original micro patches)', 'Patch failed, cannot find php source files');