brotli

Brotli extension


PHP extension for compression and decompression with Brotli library.

License: MIT

Latest releases

Version Release Download
0.21.0 2026-08-13 brotli-0.21.0.tgz
0.20.0 2026-07-02 brotli-0.20.0.tgz
0.19.0 2026-06-05 brotli-0.19.0.tgz
0.18.3 2025-12-01 brotli-0.18.3.tgz
0.18.2 2025-08-17 brotli-0.18.2.tgz
Show all releases

Changelog

Version Message
0.21.0 - add: built-in MIME type exclusion list for transparent output compression
- add: negation tokens (!) in brotli.output_compression_exclude_types
- add: phpinfo() improvements (bundled/external library, APCu serializer status)
- fix: memory leak when BrotliEncoderCompressStream() fails on PHP 7.4+
- fix: compiler warnings
0.20.0 - add: MIME type exclusions for transparent output compression (brotli.output_compression_exclude_types)
- add: --enable-apcu configure option to explicitly control APCu serializer support
- fix: enhance APCu include detection for in-tree builds
0.19.0 - add: configurable compression level for the APCu serializer (brotli.apcu_compression_level)
- fix: SIGSEGV in the APCu serializer callbacks on ZTS shared builds
- fix: CG(empty_string) crash in the smart_str_extract() fallback on PHP 7.1 ZTS
- fix: heap-buffer-overflow in php_brotli_decompress_read() inner read
- fix: heap-use-after-free in php_brotli_decompress_read()
- fix: propagate failure of brotli_uncompress_add() to the caller
- fix: UBSAN-detected undefined behavior in brotli_uncompress_add()
- fix: build on PHP 8.6+
0.18.3 - update: build-in brotli library to v1.2.0
0.18.2 - fix: disable dcb encoding when dictionary loading fails
Show complete changelog