piwik/plugins/Installation/SystemCheck.php
/**
     * Test if function exists.  Also handles case where function is disabled via Suhosin.
     *
     * @param string $functionName Function name
     * @return bool True if function exists (not disabled); False otherwise.
     */
Test if function exists.  Also handles case where function is disabled via Suhosin.
@param string $functionName Function name
@return bool True if function exists (not disabled); False otherwise.
Test if function exists . Also handles case where function is disabled via Suhosin . @param string $functionName Function name @return bool True if function exists ( not disabled ) ; False otherwise .
protected static function functionExists($functionName)
    {
        if ($functionName == 'eval') {
            if (extension_loaded('suhosin')) {
                return @ini_get("suhosin.executor.disable_eval") != "1";
            }
            return true;
        }
        $exists = function_exists($functionName);
        if (extension_loaded('suhosin')) {
            $blacklist = @ini_get("suhosin.executor.func.blacklist");
            if (!empty($blacklist)) {
                $blacklistFunctions = array_map('strtolower', array_map('trim', explode(',', $blacklist)));
                return $exists && !in_array($functionName, $blacklistFunctions);
            }
        }
        return $exists;
    }
protected static function functionExists ( $ functionName ) { if ( $ functionName == 'eval' ) { if ( extension_loaded ( 'suhosin' ) ) { return @ ini_get ( " suhosin.executor.disable_eval " ) != " 1 " ; } return true ; } $ exists = function_exists ( $ functionName ) ; if ( extension_loaded ( 'suhosin' ) ) { $ blacklist = @ ini_get ( " suhosin.executor.func.blacklist " ) ; if ( ! empty ( $ blacklist ) ) { $ blacklistFunctions = array_map ( 'strtolower' , array_map ( 'trim' , explode ( ',' , $ blacklist ) ) ) ; return $ exists && ! in_array ( $ functionName , $ blacklistFunctions ) ; } } return $ exists ; }
Test if function exists.
Test if function exists .
// eval() is a language construct // does not check suhosin.executor.eval.whitelist (or blacklist)