mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
Remove check for php_micro.c file existence in SourcePatcher
This commit is contained in:
parent
c7f611fe80
commit
6f372a74a2
@ -209,9 +209,6 @@ class SourcePatcher
|
|||||||
$patch_dir = $tmp_dir;
|
$patch_dir = $tmp_dir;
|
||||||
}
|
}
|
||||||
$php_package = PackageLoader::getTargetPackage('php');
|
$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";
|
$ver_file = "{$php_package->getSourceDir()}/main/php_version.h";
|
||||||
if (!file_exists($ver_file)) {
|
if (!file_exists($ver_file)) {
|
||||||
throw new PatchException('php-src patcher (original micro patches)', 'Patch failed, cannot find php source files');
|
throw new PatchException('php-src patcher (original micro patches)', 'Patch failed, cannot find php source files');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user