CakeFest 2024: The Official CakePHP Conference

Предопределённые константы

Модуль определяет перечисленные ниже константы и открывает к ним доступ только тогда, когда модуль либо собрали в PHP, либо динамически загрузили во время исполнения кода.

FORCE_GZIP (int)
FORCE_DEFLATE (int)
ZLIB_ENCODING_RAW (int)
Алгоритм компрессии DEFLATE по RFC 1951.
ZLIB_ENCODING_DEFLATE (int)
Алгоритм компрессии ZLIB по RFC 1950.
ZLIB_ENCODING_GZIP (int)
Алгоритм компрессии GZIP по RFC 1952.
ZLIB_FILTERED (int)
ZLIB_HUFFMAN_ONLY (int)
ZLIB_FIXED (int)
ZLIB_RLE (int)
ZLIB_DEFAULT_STRATEGY (int)
ZLIB_BLOCK (int)
ZLIB_NO_FLUSH (int)
ZLIB_PARTIAL_FLUSH (int)
ZLIB_SYNC_FLUSH (int)
ZLIB_FULL_FLUSH (int)
ZLIB_FINISH (int)
add a note

User Contributed Notes 2 notes

up
3
diogoko at gmail dot com
5 years ago
A tried at 3v4l.org and the first version to have the ZLIB_ENCODING_* constants was 5.4.0.
up
2
dave dot mariano1991 at gmail dot com
6 years ago
I'm noticing that all the ZLIB_ENCODING_* constants are documented to exist as of PHP 7.0, but I seem to be able to use them in PHP 5.5.9.

Could someone please confirm this documentation?
To Top