A tried at 3v4l.org and the first version to have the ZLIB_ENCODING_* constants was 5.4.0.
Constantele de mai jos sunt definite de această extensie și vor fi disponibile doar dacă această extensie a fost compilată în interiorul PHP, sau a fost încărcată dinamic în timpul rulării.
FORCE_GZIP
(integer)
FORCE_DEFLATE
(integer)
ZLIB_ENCODING_RAW
(integer)
ZLIB_ENCODING_DEFLATE
(integer)
ZLIB_ENCODING_GZIP
(integer)
ZLIB_FILTERED
(integer)
ZLIB_HUFFMAN_ONLY
(integer)
ZLIB_FIXED
(integer)
ZLIB_RLE
(integer)
ZLIB_DEFAULT_STRATEGY
(integer)
ZLIB_BLOCK
(integer)
ZLIB_NO_FLUSH
(integer)
ZLIB_PARTIAL_FLUSH
(integer)
ZLIB_SYNC_FLUSH
(integer)
ZLIB_FULL_FLUSH
(integer)
ZLIB_FINISH
(integer)
A tried at 3v4l.org and the first version to have the ZLIB_ENCODING_* constants was 5.4.0.
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?