Add SPC_CMD_VAR_PHP_EMBED_TYPE for embed building in glibc mode

This commit is contained in:
crazywhalecc
2025-03-10 16:15:47 +08:00
parent b6324fd71e
commit 1ce1c326b2
5 changed files with 24 additions and 3 deletions

View File

@@ -454,6 +454,13 @@ class FileSystem
unlink($path . '.bak');
}
public static function removeFileIfExists(string $string): void
{
if (file_exists($string)) {
unlink($string);
}
}
/**
* @throws RuntimeException
* @throws FileSystemException