zlib.output_compression
zlib.output_compression — Transparent output compression using the zlib library Valid values for this option are 'off', 'on', or a specific buffer size to be used for compression (default is 4KB) Note: Resulting chunk size may vary due to nature of compression. PHP outputs chunks that are few hundreds bytes each as a result of compression. If you prefer a larger chunk size for better performance, enable output_buffering in addition. Note: You need to use zlib.output_handler instead of the standard output_handler, or otherwise the output will be corrupted.
| Default value | Off |
| Development value | Off |
| Production value | Off |
Modifiability: INI_ALL - The zlib.output_compression INI directive can be configured anywhere, including php.ini files, ini_set calls, Apache .htaccess files, per-directory .ini files, etc.
zlib.output_compression = 0 Changes to the zlib.output_compression INI
PHP 8.5
- INI directive default value changed from
` to0`
zlib.output_compression INI Availability
zlib.output_compression INI Availability| PHP Version | Availability |
|---|---|
| PHP 8.6Future Release | Yes |
| PHP 8.5Upcoming Release | Yes |
| PHP 8.4Supported (Latest) | Yes |
| PHP 8.3Supported | Yes |
| PHP 8.2Security-Fixes Only | Yes |
| PHP 8.1Security-Fixes Only | Yes |
| PHP 8.0Unsupported | Yes |
| PHP 7.4Unsupported | Yes |
| PHP 7.3Unsupported | Yes |
| PHP 7.2Unsupported | Yes |
| PHP 7.1Unsupported | Yes |
| PHP 7.0Unsupported | Yes |
| PHP 5.6Unsupported | Yes |
| PHP 5.5Unsupported | Yes |
| PHP 5.4Unsupported | Yes |
| PHP 5.3Unsupported | Yes |