PhpSandbox\PHPSandbox::hasBlacklistedSuperglobals PHP Méthode

hasBlacklistedSuperglobals() public méthode

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