<?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 => 'es',
  ),
  'this' => 
  array (
    0 => 'phar.constants.php',
    1 => 'Constantes predefinidas',
    2 => 'Constantes predefinidas',
  ),
  'up' => 
  array (
    0 => 'book.phar.php',
    1 => 'Phar',
  ),
  'prev' => 
  array (
    0 => 'phar.resources.php',
    1 => 'Tipos de recursos',
  ),
  'next' => 
  array (
    0 => 'phar.using.php',
    1 => 'Utilizar los archivos Phar',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    '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 predefinidas</h1>

 <p class="simpara">Estas constantes son definidas por esta
extensión, y solo están disponibles si esta extensión ha sido compilada con
PHP, o bien cargada en tiempo de ejecución.</p>
  <table id="phar.constants.compression" class="doctable table">
   <caption><strong>Las constantes de compresión Phar</strong></caption>
   
    <thead>
     <tr>
      <th>Constante</th>
      <th>Valor</th>
      <th>Descripción</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>ninguna compresión</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>máscara de bits que puede ser utilizada con los flags de fichero para determinar si se utiliza una compresión</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>compresión 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>compresión bzip2</td>
     </tr>

    </tbody>
   
  </table>

  <table id="phar.constants.fileformat" class="doctable table">
   <caption><strong>Las constantes de formato de fichero Phar</strong></caption>
   
    <thead>
     <tr>
      <th>Constante</th>
      <th>Valor</th>
      <th>Descripción</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>formato de fichero 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>formato de fichero 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>formato de fichero zip</td>
     </tr>

    </tbody>
   
  </table>

  <table id="phar.constants.signature" class="doctable table">
   <caption><strong>Las constantes de firma Phar</strong></caption>
   
    <thead>
     <tr>
      <th>Constante</th>
      <th>Valor</th>
      <th>Descripción</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>firma con el algoritmo 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>firma con el algoritmo 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>firma con el algoritmo sha256 (requiere la extensión 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>firma con el algoritmo sha512 (requiere la extensión 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>firma con un par de claves privada/pública OpenSSL. Es una verdadera
      firma de clave asimétrica</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>Las constantes de sobrescritura de mime Phar webPhar</strong></caption>
   
    <thead>
     <tr>
      <th>Constante</th>
      <th>Valor</th>
      <th>Descripción</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>utilizada para especificar el argumento de sobrescritura mime
      de <span class="function"><a href="phar.webphar.php" class="function">Phar::webPhar()</a></span> y hacer que la extensión
      sea analizada como un fichero 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>utilizada para especificar el argumento de sobrescritura mime
      de <span class="function"><a href="phar.webphar.php" class="function">Phar::webPhar()</a></span> y hacer que la extensión
      sea analizada como un fichero PHP mediante <span class="function"><a href="function.highlight-file.php" class="function">highlight_file()</a></span></td>
     </tr>

    </tbody>
   
  </table>

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