WC_Download_Handler::check_server_config PHP Method

check_server_config() private static method

Check and set certain server config variables to ensure downloads work as intended.
private static check_server_config ( )
    private static function check_server_config()
    {
        wc_set_time_limit(0);
        if (function_exists('get_magic_quotes_runtime') && get_magic_quotes_runtime() && version_compare(phpversion(), '5.4', '<')) {
            set_magic_quotes_runtime(0);
        }
        if (function_exists('apache_setenv')) {
            @apache_setenv('no-gzip', 1);
        }
        @ini_set('zlib.output_compression', 'Off');
        @session_write_close();
    }