public static function checkRequestVars()
    {
        if (version_compare(PHP_VERSION, '6.0.0', '<')) {
            if (ini_get('register_globals')) {
                Debug::_warn('<a target="_blank" href="http://www.php.net/manual/en/security.globals.php">register_globals</a> is on,  strongly recommended to turn off');
                foreach (array_keys($_REQUEST) as $k) {
                    if (isset($GLOBALS[$k]) && $GLOBALS[$k] === $_REQUEST[$k]) {
                        unset($GLOBALS[$k]);
                    }
                }
            }
            if (get_magic_quotes_gpc()
                || ini_get('magic_quotes_sybase') && strtolower(ini_get('magic_quotes_sybase')) != 'off'
            ) {
                Debug::_warn('<a target="_blank" href="http://www.php.net/manual/en/security.magicquotes.php">magic_quotes</a> is on,  strongly recommended to turn off');
                $_GET       = ArrayUtil::mapDeep('stripslashes', $_GET);
                $_POST      = ArrayUtil::mapDeep('stripslashes', $_POST);
                $_COOKIE    = ArrayUtil::mapDeep('stripslashes', $_COOKIE);
                // @todo _REQUEST
            }
        }
        if (self::$cfgStatic['keepQueryDot']) {
            $_GET = Str::parse($_SERVER['QUERY_STRING']);   // allow "." in keys
        }
        if ($_SERVER['REQUEST_METHOD'] == 'POST' && strpos($_SERVER['CONTENT_TYPE'], 'application/json') === 0) {
            Debug::getInstance()->info('JSON POST data');
            $postdata = file_get_contents('php://input');
            $_POST = json_decode($postdata, true);
            $_REQUEST = array_merge($_REQUEST, $_POST);
        }
    }