<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Predefined Constants</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="zlib.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="zlib.examples.html">Examples</a></div> <div class="up"><a href="book.zlib.html">Zlib</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="zlib.constants" class="appendix"> <h1>Predefined Constants</h1> <p class="simpara"> The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime. </p> <dl> <dt id="constant.force-gzip"> <strong><code>FORCE_GZIP</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> </span> </dd> <dt id="constant.force-deflate"> <strong><code>FORCE_DEFLATE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> </span> </dd> <dt id="constant.zlib-encoding-raw"> <strong><code>ZLIB_ENCODING_RAW</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> DEFLATE algorithm as per RFC 1951. Available as of PHP 7.0.0. </span> </dd> <dt id="constant.zlib-encoding-deflate"> <strong><code>ZLIB_ENCODING_DEFLATE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> ZLIB compression algorithm as per RFC 1950. Available as of PHP 7.0.0. </span> </dd> <dt id="constant.zlib-encoding-gzip"> <strong><code>ZLIB_ENCODING_GZIP</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> GZIP algorithm as per RFC 1952. Available as of PHP 7.0.0. </span> </dd> <dt id="constant.zlib-filtered"> <strong><code>ZLIB_FILTERED</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> Available as of PHP 7.0.0. </span> </dd> <dt id="constant.zlib-huffman-only"> <strong><code>ZLIB_HUFFMAN_ONLY</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> Available as of PHP 7.0.0. </span> </dd> <dt id="constant.zlib-fixed"> <strong><code>ZLIB_FIXED</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> Available as of PHP 7.0.0. </span> </dd> <dt id="constant.zlib-rle"> <strong><code>ZLIB_RLE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> Available as of PHP 7.0.0. </span> </dd> <dt id="constant.zlib-default-strategy"> <strong><code>ZLIB_DEFAULT_STRATEGY</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> Available as of PHP 7.0.0. </span> </dd> <dt id="constant.zlib-block"> <strong><code>ZLIB_BLOCK</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> Available as of PHP 7.0.0. </span> </dd> <dt id="constant.zlib-no-flush"> <strong><code>ZLIB_NO_FLUSH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> Available as of PHP 7.0.0. </span> </dd> <dt id="constant.zlib-partial-flush"> <strong><code>ZLIB_PARTIAL_FLUSH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> Available as of PHP 7.0.0. </span> </dd> <dt id="constant.zlib-sync-flush"> <strong><code>ZLIB_SYNC_FLUSH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> Available as of PHP 7.0.0. </span> </dd> <dt id="constant.zlib-full-flush"> <strong><code>ZLIB_FULL_FLUSH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> Available as of PHP 7.0.0. </span> </dd> <dt id="constant.zlib-finish"> <strong><code>ZLIB_FINISH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> Available as of PHP 7.0.0. </span> </dd> </dl> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="zlib.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="zlib.examples.html">Examples</a></div> <div class="up"><a href="book.zlib.html">Zlib</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>