mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +08:00
add putenv wrapper
This commit is contained in:
@@ -110,6 +110,12 @@ function f_mkdir(string $directory, int $permissions = 0777, bool $recursive = f
|
||||
return mkdir($directory, $permissions, $recursive);
|
||||
}
|
||||
|
||||
function f_putenv(string $env): bool
|
||||
{
|
||||
logger()->debug('Setting env: ' . $env);
|
||||
return putenv($env);
|
||||
}
|
||||
|
||||
function shell(?bool $debug = null): UnixShell
|
||||
{
|
||||
return new UnixShell($debug);
|
||||
|
||||
Reference in New Issue
Block a user