<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/phar.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'phar.configuration.php',
    1 => 'Налаштування під час виконання',
    2 => 'Налаштування під час виконання',
  ),
  'up' => 
  array (
    0 => 'phar.setup.php',
    1 => 'Встановлення/налаштування',
  ),
  'prev' => 
  array (
    0 => 'phar.installation.php',
    1 => 'Встановлення',
  ),
  'next' => 
  array (
    0 => 'phar.resources.php',
    1 => 'Типи ресурсів',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/phar/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="phar.configuration" class="section">
 <h2 class="title">Налаштування під час виконання</h2>
 <p class="simpara">
На поведінку цих функцій випливають налаштування в <var class="filename">php.ini</var>.
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Filesystem and Streams Configuration Options</strong></caption>
   
    <thead>
     <tr>
      <th>Назва</th>
      <th>Початково</th>
      <th>Де можна змінювати</th>
      <th>Журнал змін</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="phar.configuration.php#ini.phar.readonly" class="link">phar.readonly</a></td>
      <td>&quot;1&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="phar.configuration.php#ini.phar.require-hash" class="link">phar.require_hash</a></td>
      <td>&quot;1&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="phar.configuration.php#ini.phar.cache-list" class="link">phar.cache_list</a></td>
      <td>&quot;&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

    </tbody>
   
  </table>

 </p>
 
 <p class="para">Тут є коротке пояснення директив
конфігурації.</p>
 
 <p class="para">
  <dl>
   
    <dt id="ini.phar.readonly">
     <code class="parameter">phar.readonly</code>
     <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
    </dt>
    <dd>
     <p class="para">
      This option disables creation or modification of Phar archives
      using the <code class="literal">phar</code> stream or <span class="classname"><a href="class.phar.php" class="classname">Phar</a></span>
      object&#039;s write support.  This setting should always be enabled on
      production machines, as the phar extension&#039;s convenient write support
      could allow straightforward creation of a php-based virus when coupled
      with other common security vulnerabilities.
     </p>
     <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
      <p class="para">
       This setting can only be unset in php.ini due to security reasons.
       If <code class="literal">phar.readonly</code> is disabled in php.ini, the
       user may enable <code class="literal">phar.readonly</code> in a script
       or disable it later.  If <code class="literal">phar.readonly</code> is
       enabled in php.ini, a script may harmlessly &quot;re-enable&quot;
       the INI variable, but may not disable it.
      </p>
     </p></blockquote>
    </dd>
   

   
    <dt id="ini.phar.require-hash">
     <code class="parameter">phar.require_hash</code>
     <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
    </dt>
    <dd>
     <p class="para">
      This option will force all opened Phar archives to contain some
      kind of signature (currently MD5, SHA1, SHA256, SHA512 and OpenSSL are supported), and will
      refuse to process any Phar archive that does not contain a signature.
     </p>
     <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
      <p class="para">
       This setting can only be unset in php.ini.
       If <code class="literal">phar.require_hash</code> is disabled in php.ini, the
       user may enable <code class="literal">phar.require_hash</code> in a script
       or disable it later.  If <code class="literal">phar.require_hash</code> is
       enabled in php.ini, a script may harmlessly &quot;re-enable&quot;
       the INI variable, but may not disable it.
      </p>
      <p class="para">
       This setting does not affect reading plain tar files with the
       <span class="classname"><a href="class.phardata.php" class="classname">PharData</a></span> class.
      </p>
     </p></blockquote>
     <div class="caution"><strong class="caution">Застереження</strong>
      <p class="simpara">
       <code class="literal">phar.require_hash</code> does not provide any security per se,
       it is merely a measure against running accidentially corrupted Phar archives,
       because anyone who would be able to tamper with the Phar could easily fix
       the signature afterwards.
      </p>
     </div>
    </dd>
   

   
    <dt id="ini.phar.cache-list">
     <code class="parameter">phar.cache_list</code>
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
    </dt>
    <dd>
     <p class="para">
      Allows mapping phar archives to be pre-parsed at web server startup,
      providing a performance improvement that brings running files out of a
      phar archive very close to the speed of running those files from a
      traditional disk-based installation.
      <div class="example" id="example-1">
       <p><strong>Приклад #1 phar.cache_list usage example</strong></p>
       <div class="example-contents">
<div class="cdata"><pre>
in php.ini (windows):
phar.cache_list =C:\path\to\phar1.phar;C:\path\to\phar2.phar
in php.ini (unix):
phar.cache_list =/path/to/phar1.phar:/path/to/phar2.phar
</pre></div>
       </div>

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