brotli

Brotli extension


PHP extension for compression and decompression with Brotli library.

License: MIT

Latest releases

Version Release Download
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
0.18.1 2025-08-12 brotli-0.18.1.tgz
0.18.0 2025-06-16 brotli-0.18.0.tgz
Show all releases

Changelog

Version Message
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
0.18.1 - improve: Use Zend/zend_smart_string.h
- improve: PHP 8.5 alpha3 compatibility
- fix: Add missing zend_string_release calls to prevent memory leaks
0.18.0 - add: BROTLI_VERSION_TEXT and BROTLI_VERSION_NUMBER constants
- change!: remove length argument for brotli_uncompress()
- remove: BROTLI_LIB_VERSION that is no longer needed
- fix: memory leak
- refactor: change library version acquisition in ZEND_MINFO_FUNCTION to constant
- refactor: zend parse parameters sets the return value on error to false
Show complete changelog