PhpSandbox\PHPSandbox::isWhitelistedMagicConst PHP Méthode

isWhitelistedMagicConst() public méthode

Check if PHPSandbox instance has whitelisted magic constant name set
public isWhitelistedMagicConst ( string $name ) : boolean
$name string String of magic constant $name to query
Résultat boolean Returns true if PHPSandbox instance has whitelisted magic constant $name, false otherwise
    public function isWhitelistedMagicConst($name)
    {
        $name = $this->normalizeMagicConst($name);
        return isset($this->whitelist['magic_constants'][$name]);
    }
PHPSandbox