src/FileStreamer.php
/**
     * Disable output compression of the servers.
     *
     * Note:
     * Browser compression can only be disabled when php runs as an apache module. For other php modes, you'll
     * need to disable the compression in your server configuration or .htaccess file.
     *
     * @return void
     */
Disable output compression of the servers.
Note:
Browser compression can only be disabled when php runs as an apache module. For other php modes, you'll
need to disable the compression in your server configuration or .htaccess file.

@return void
Disable output compression of the servers . Note : Browser compression can only be disabled when php runs as an apache module . For other php modes you ' ll need to disable the compression in your server configuration or . htaccess file . @return void
private function disableCompression(): void
    {
        if (PHP_SAPI == 'apache2handler' && @apache_setenv('no-gzip', '1') === false) {
            trigger_error('An error occurred while disabling output compression of the webserver!', E_USER_WARNING);
        }
        if (@ini_set('zlib.output_compression', 'Off') === false) {
            trigger_error('An error occurred while disabling output compression of the php server!', E_USER_WARNING);
        }
    }
private function disableCompression ( ) : void { if ( PHP_SAPI == 'apache2handler' && @ apache_setenv ( 'no-gzip' , '1' ) === false ) { trigger_error ( 'An error occurred while disabling output compression of the webserver!' , E_USER_WARNING ) ; } if ( @ ini_set ( 'zlib.output_compression' , 'Off' ) === false ) { trigger_error ( 'An error occurred while disabling output compression of the php server!' , E_USER_WARNING ) ; } }
Disable output compression of the servers.
Disable output compression of the servers .
// PHP Unit test will always trigger this error. Suppress with @ while testing.