mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-03 06:45:39 +08:00
Add SPC_CMD_VAR_PHP_EMBED_TYPE for embed building in glibc mode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user