PhpSandbox\PHPSandbox::isBlacklistedSuperglobal PHP Méthode

isBlacklistedSuperglobal() public méthode

Check if PHPSandbox instance has blacklisted superglobal or superglobal key set
public isBlacklistedSuperglobal ( string $name, string $key = null ) : boolean
$name string String of blacklisted superglobal $name to query
$key string String of blacklisted superglobal $key to query
Résultat boolean Returns true if PHPSandbox instance has blacklisted superglobal key or superglobal, false otherwise
    public function isBlacklistedSuperglobal($name, $key = null)
    {
        $name = $this->normalizeSuperglobal($name);
        return $key !== null ? isset($this->blacklist['superglobals'][$name][$key]) : isset($this->blacklist['superglobals'][$name]);
    }
PHPSandbox