<?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 => 'uk',
  ),
  'this' => 
  array (
    0 => 'phar.constants.php',
    1 => 'Попередньо визначені константи',
    2 => 'Попередньо визначені константи',
  ),
  'up' => 
  array (
    0 => 'book.phar.php',
    1 => 'Phar',
  ),
  'prev' => 
  array (
    0 => 'phar.resources.php',
    1 => 'Типи ресурсів',
  ),
  'next' => 
  array (
    0 => 'phar.using.php',
    1 => 'Using Phar Archives',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    '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">Попередньо визначені константи</h1>

 <p class="simpara">
Константи, описані нижче — визначені цим розширенням, тож доступні, коли
розширення скомпільовано як частина PHP або динамічно підключене під час
виконання.
</p>
  <table id="phar.constants.compression" class="doctable table">
   <caption><strong>Phar compression constants</strong></caption>
   
    <thead>
     <tr>
      <th>Constant</th>
      <th>Value</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>no 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>bitmask that can be used with file flags to determine if any compression is present</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>zlib (gzip) compression</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>bzip2 compression</td>
     </tr>

    </tbody>
   
  </table>

  <table id="phar.constants.fileformat" class="doctable table">
   <caption><strong>Phar file format constants</strong></caption>
   
    <thead>
     <tr>
      <th>Constant</th>
      <th>Value</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>phar file format</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>tar file format</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>zip file format</td>
     </tr>

    </tbody>
   
  </table>

  <table id="phar.constants.signature" class="doctable table">
   <caption><strong>Phar signature constants</strong></caption>
   
    <thead>
     <tr>
      <th>Constant</th>
      <th>Value</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 with md5 hash algorithm</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 with sha1 hash algorithm</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 with sha256 hash algorithm (requires hash extension)</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 with sha512 hash algorithm (requires hash extension)</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 with OpenSSL public/private key pair.  This is a true,
      asymmetric key signature.</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>Phar webPhar mime override constants</strong></caption>
   
    <thead>
     <tr>
      <th>Constant</th>
      <th>Value</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>used to instruct the mimeoverrides parameter
      of <span class="function"><a href="phar.webphar.php" class="function">Phar::webPhar()</a></span> that the extension should be
      parsed as a PHP file</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>used to instruct the mimeoverrides parameter
      of <span class="function"><a href="phar.webphar.php" class="function">Phar::webPhar()</a></span> that the extension should be
      parsed as a PHP source file through <span class="function"><a href="function.highlight-file.php" class="function">highlight_file()</a></span></td>
     </tr>

    </tbody>
   
  </table>

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