<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.zlib.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.inflate-init.php',
    1 => 'inflate_init',
    2 => 'Initialise un contexte de d&eacute;compressage incr&eacute;mentiel',
  ),
  'up' => 
  array (
    0 => 'ref.zlib.php',
    1 => 'Fonctions Zlib',
  ),
  'prev' => 
  array (
    0 => 'function.inflate-get-status.php',
    1 => 'inflate_get_status',
  ),
  'next' => 
  array (
    0 => 'function.ob-gzhandler.php',
    1 => 'ob_gzhandler',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/zlib/functions/inflate_init.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.inflate-init" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">inflate_init</h1>
  <p class="verinfo">(PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">inflate_init</span> &mdash; <span class="dc-title">Initialise un contexte de décompressage incrémentiel</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.inflate-init-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>inflate_init</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$encoding</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.object.php" class="type object">object</a></span></span> <code class="parameter">$options</code><span class="initializer"> = []</span></span>): <span class="type"><span class="type"><a href="class.inflatecontext.php" class="type InflateContext">InflateContext</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
    Initialise un contexte de décompressage incrémentiel avec l&#039;<code class="parameter">encoding</code>
    spécifié.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.inflate-init-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   
    <dt><code class="parameter">encoding</code></dt>
    <dd>
     <p class="para">
      Une des constantes <strong><code><a href="zlib.constants.php#constant.zlib-encoding-raw">ZLIB_ENCODING_<span class="replaceable">*</span></a></code></strong>.
     </p>
    </dd>
   
   
    <dt><code class="parameter">options</code></dt>
    <dd>
     <p class="para">
      Un tableau associatif qui peut contenir les éléments suivants :
      <dl>
       
        <dt><var class="varname">level</var></dt>
        <dd>
         <p class="para">
          Le niveau de compression dans la plage -1..9 ; par défaut -1.
         </p>
        </dd>
       
       
        <dt><var class="varname">memory</var></dt>
        <dd>
         <p class="para">
          Le niveau de mémoire de compression dans la plage 1..9 ; par défaut 8.
         </p>
        </dd>
       
       
        <dt><var class="varname">window</var></dt>
        <dd>
         <p class="para">
          La taille de la fenêtre de compression (logarithmique) dans la plage 8..15 ; par défaut 15.
         </p>
        </dd>
       
       
        <dt><var class="varname">strategy</var></dt>
        <dd>
         <p class="para">
          Une des <strong><code><a href="zlib.constants.php#constant.zlib-filtered">ZLIB_FILTERED</a></code></strong>,
          <strong><code><a href="zlib.constants.php#constant.zlib-huffman-only">ZLIB_HUFFMAN_ONLY</a></code></strong>, <strong><code><a href="zlib.constants.php#constant.zlib-rle">ZLIB_RLE</a></code></strong>,
          <strong><code><a href="zlib.constants.php#constant.zlib-fixed">ZLIB_FIXED</a></code></strong> ou
          <strong><code><a href="zlib.constants.php#constant.zlib-default-strategy">ZLIB_DEFAULT_STRATEGY</a></code></strong> (par défaut).
         </p>
        </dd>
       
       
        <dt><var class="varname">dictionary</var></dt>
        <dd>
         <p class="para">
          Un <span class="type"><a href="language.types.string.php" class="type string">string</a></span> ou un <span class="type"><a href="language.types.array.php" class="type array">array</a></span> de <span class="type">strings</span>
          du dictionnaire prédéfini (par défaut : aucun dictionnaire prédéfini).
         </p>
        </dd>
       
      </dl>
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.inflate-init-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Renvoie un contexte de décompressage (<code class="literal">zlib.inflate</code>) en cas de
   succès,  ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.inflate-init-errors">
  <h3 class="title">Erreurs / Exceptions</h3>
  <p class="para">
   Si un encodage ou une option invalide est passé à <code class="parameter">options</code>,
   ou que le contexte n&#039;a pas pu être créé, une erreur de niveau
   <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> est générée.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.inflate-init-changelog">
  <h3 class="title">Historique</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       En cas de succès, cette fonction renvoie désormais une instance de <span class="classname"><a href="class.inflatecontext.php" class="classname">InflateContext</a></span> ;
       précédemment, un <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> était renvoyé.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 notes" id="refsect1-function.inflate-init-notes">
  <h3 class="title">Notes</h3>
  <div class="caution"><strong class="caution">Attention</strong>
   <p class="simpara">
    Contrairement à <span class="function"><a href="function.gzinflate.php" class="function">gzinflate()</a></span>, les contextes de gonflage incrémentiel ne 
    limitent pas la longueur des données décodées, donc ne fournissent aucune protection
    automatique contre les bombes Zip.
   </p>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.inflate-init-seealso">
  <h3 class="title">Voir aussi</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.inflate-add.php" class="function" rel="rdfs-seeAlso">inflate_add()</a> - D&eacute;compresse des donn&eacute;es de mani&egrave;re incr&eacute;mentielle</span></li>
   <li><span class="function"><a href="function.deflate-init.php" class="function" rel="rdfs-seeAlso">deflate_init()</a> - Initialise un contexte de compressage incr&eacute;mentiel</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>