Constante predefinite

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)
Algoritmul DEFLATE conform RFC 1951. Disponibilă începând cu PHP 7.0.0.
ZLIB_ENCODING_DEFLATE (integer)
Algoritmul de compresie ZLIB conform RFC 1950. Disponibilă începând cu PHP 7.0.0.
ZLIB_ENCODING_GZIP (integer)
Algoritmul GZIP conform RFC 1952. Disponibilă începând cu PHP 7.0.0.
ZLIB_FILTERED (integer)
Disponibilă începând cu PHP 7.0.0.
ZLIB_HUFFMAN_ONLY (integer)
Disponibilă începând cu PHP 7.0.0.
ZLIB_FIXED (integer)
Disponibilă începând cu PHP 7.0.0.
ZLIB_RLE (integer)
Disponibilă începând cu PHP 7.0.0.
ZLIB_DEFAULT_STRATEGY (integer)
Disponibilă începând cu PHP 7.0.0.
ZLIB_BLOCK (integer)
Disponibilă începând cu PHP 7.0.0.
ZLIB_NO_FLUSH (integer)
Disponibilă începând cu PHP 7.0.0.
ZLIB_PARTIAL_FLUSH (integer)
Disponibilă începând cu PHP 7.0.0.
ZLIB_SYNC_FLUSH (integer)
Disponibilă începând cu PHP 7.0.0.
ZLIB_FULL_FLUSH (integer)
Disponibilă începând cu PHP 7.0.0.
ZLIB_FINISH (integer)
Disponibilă începând cu PHP 7.0.0.
add a note add a note

User Contributed Notes 2 notes

up
2
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