PhpSandbox\PHPSandbox::hasWhitelistedSuperglobals PHP Méthode

hasWhitelistedSuperglobals() public méthode

Query whether PHPSandbox instance has whitelisted superglobals, or superglobal keys
public hasWhitelistedSuperglobals ( string $name = null ) : integer
$name string The whitelist superglobal key to query
Résultat integer Returns the number of whitelisted superglobals or superglobal keys this instance has defined
    public function hasWhitelistedSuperglobals($name = null)
    {
        $name = $this->normalizeSuperglobal($name);
        return $name !== null ? isset($this->whitelist['superglobals'][$name]) ? count($this->whitelist['superglobals'][$name]) : 0 : count($this->whitelist['superglobals']);
    }
PHPSandbox