inflate_init
inflate_init
Initialize an incremental inflate context
**inflate_init** int $encoding $options
Initialize an incremental inflate context with the specified
.
encoding
encoding
One of the constants.
ZLIB_ENCODING_*
options
An associative array which may contain the following elements:
`level`The compression level in range -1..9; defaults to -1.
memoryThe compression memory level in range 1..9; defaults to 8.
windowThe zlib window size (logarithmic) in range 8..15; defaults to 15.
strategy
One of ,
, ,
or
(the default).
ZLIB_FILTERED``ZLIB_HUFFMAN_ONLY``ZLIB_RLE``ZLIB_FIXED``ZLIB_DEFAULT_STRATEGY
dictionary
A or an of
of the preset dictionary (default: no preset dictionary).
string``array``strings
Returns an inflate context resource () on
success, return.falseforfailure.
zlib.inflate
If an invalid encoding or option is passed to ,
or the context couldn't be created, an error of level
is generated.
options``E_WARNING
Let op: > Unlike , incremental inflate contexts do not constrain the length of the decoded data, so provide no automatic protection against Zip bombs.
gzinflate
inflate_add``deflate_init