whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
azjezz
/
psl
/
src
/
Psl
/
Env
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/azjezz/psl/src/Psl/Env/remove_var.php
<?php declare(strict_types=1); namespace Psl\Env; use Psl; use function putenv; use function str_contains; /** * Removes an environment variable from the environment of the currently running process. * * @param non-empty-string $key * * @throws Psl\Exception\InvariantViolationException If contains an ASCII equals sign `=` or, the NUL character `\0`. */ function remove_var(string $key): void { if (str_contains($key, '=') || str_contains($key, "\0")) { Psl\invariant_violation('Invalid environment variable key provided.'); } putenv($key); }
Copyright ©2021 || Defacer Indonesia