<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.phar.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'phar.constants.php',
    1 => 'Constantes pr&eacute;-d&eacute;finies',
    2 => 'Constantes pr&eacute;-d&eacute;finies',
  ),
  'up' => 
  array (
    0 => 'book.phar.php',
    1 => 'Phar',
  ),
  'prev' => 
  array (
    0 => 'phar.resources.php',
    1 => 'Types de ressources',
  ),
  'next' => 
  array (
    0 => 'phar.using.php',
    1 => 'Utiliser les archives Phar',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/phar/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="phar.constants" class="appendix">
 <h1 class="title">Constantes pré-définies</h1>

 <p class="simpara">Ces constantes sont définies par cette
extension, et ne sont disponibles que si cette extension a été compilée avec
PHP, ou bien chargée au moment de l&#039;exécution.</p>
  <table id="phar.constants.compression" class="doctable table">
   <caption><strong>Les constantes de compression Phar</strong></caption>
   
    <thead>
     <tr>
      <th>Constante</th>
      <th>Valeur</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr id="phar.constants.none">
      <td>
       <strong><code><a href="phar.constants.php#phar.constants.none">Phar::NONE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>0x00000000</td>
      <td>aucune compression</td>
     </tr>

     <tr id="phar.constants.compressed">
      <td>
       <strong><code><a href="phar.constants.php#phar.constants.compressed">Phar::COMPRESSED</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>0x0000F000</td>
      <td>masque de bits pouvant être utilisé avec les drapeaux de fichier pour déterminer si une compression est utilisée</td>
     </tr>

     <tr id="phar.constants.gz">
      <td>
       <strong><code><a href="phar.constants.php#phar.constants.gz">Phar::GZ</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>0x00001000</td>
      <td>compression zlib (gzip)</td>
     </tr>

     <tr id="phar.constants.bz2">
      <td>
       <strong><code><a href="phar.constants.php#phar.constants.bz2">Phar::BZ2</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>0x00002000</td>
      <td>compression bzip2</td>
     </tr>

    </tbody>
   
  </table>

  <table id="phar.constants.fileformat" class="doctable table">
   <caption><strong>Les constantes de format de fichier Phar</strong></caption>
   
    <thead>
     <tr>
      <th>Constante</th>
      <th>Valeur</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr id="phar.constants.phar">
      <td>
       <strong><code><a href="phar.constants.php#phar.constants.phar">Phar::PHAR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>1</td>
      <td>format de fichier phar</td>
     </tr>

     <tr id="phar.constants.tar">
      <td>
       <strong><code><a href="phar.constants.php#phar.constants.tar">Phar::TAR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>2</td>
      <td>format de fichier tar</td>
     </tr>

     <tr id="phar.constants.zip">
      <td>
       <strong><code><a href="phar.constants.php#phar.constants.zip">Phar::ZIP</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>3</td>
      <td>format de fichier zip</td>
     </tr>

    </tbody>
   
  </table>

  <table id="phar.constants.signature" class="doctable table">
   <caption><strong>Les constantes de signature Phar</strong></caption>
   
    <thead>
     <tr>
      <th>Constante</th>
      <th>Valeur</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr id="phar.constants.md5">
      <td>
       <strong><code><a href="phar.constants.php#phar.constants.md5">Phar::MD5</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>0x0001</td>
      <td>signature avec l&#039;algorithme md5</td>
     </tr>

     <tr id="phar.constants.sha1">
      <td>
       <strong><code><a href="phar.constants.php#phar.constants.sha1">Phar::SHA1</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>0x0002</td>
      <td>signature avec l&#039;algorithme sha1</td>
     </tr>

     <tr id="phar.constants.sha256">
      <td>
       <strong><code><a href="phar.constants.php#phar.constants.sha256">Phar::SHA256</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>0x0003</td>
      <td>signature avec l&#039;algorithme sha256 (requiert l&#039;extension hash)</td>
     </tr>

     <tr id="phar.constants.sha512">
      <td>
       <strong><code><a href="phar.constants.php#phar.constants.sha512">Phar::SHA512</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>0x0004</td>
      <td>signature avec l&#039;algorithme sha512 (requiert l&#039;extension hash)</td>
     </tr>

     <tr id="phar.constants.openssl">
      <td>
       <strong><code><a href="phar.constants.php#phar.constants.openssl">Phar::OPENSSL</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>0x0010</td>
      <td>signature avec une paire de clé privée/publique OpenSSL. C&#039;est une véritable
      signature à clé asymétrique.</td>
     </tr>

     <tr id="phar.constants.openssl-sha256">
      <td>
       <strong><code><a href="phar.constants.php#phar.constants.openssl-sha256">Phar::OPENSSL_SHA256</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td class="empty">&nbsp;</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr id="phar.constants.openssl-sha512">
      <td>
       <strong><code><a href="phar.constants.php#phar.constants.openssl-sha512">Phar::OPENSSL_SHA512</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td class="empty">&nbsp;</td>
      <td class="empty">&nbsp;</td>
     </tr>

    </tbody>
   
  </table>

  <table id="phar.constants.mimeoverride" class="doctable table">
   <caption><strong>Les constantes d&#039;écrasement de mime Phar webPhar</strong></caption>
   
    <thead>
     <tr>
      <th>Constante</th>
      <th>Valeur</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr id="phar.constants.php">
      <td>
       <strong><code><a href="phar.constants.php#phar.constants.php">Phar::PHP</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>0</td>
      <td>utilisée pour renseigner le paramètre d&#039;écrasement mime
      de <span class="function"><a href="phar.webphar.php" class="function">Phar::webPhar()</a></span> et faire en sorte que l&#039;extension
      soit parsée comme un fichier PHP</td>
     </tr>

     <tr id="phar.constants.phps">
      <td>
       <strong><code><a href="phar.constants.php#phar.constants.phps">Phar::PHPS</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>1</td>
      <td>utilisée pour renseigner le paramètre d&#039;écrasement mime
      de <span class="function"><a href="phar.webphar.php" class="function">Phar::webPhar()</a></span> et faire en sorte que l&#039;extension
      soit parsée comme un fichier PHP via <span class="function"><a href="function.highlight-file.php" class="function">highlight_file()</a></span></td>
     </tr>

    </tbody>
   
  </table>

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