<?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 => 'de',
  ),
  'this' => 
  array (
    0 => 'phar.configuration.php',
    1 => 'Laufzeit-Konfiguration',
    2 => 'Laufzeit-Konfiguration',
  ),
  'up' => 
  array (
    0 => 'phar.setup.php',
    1 => 'Installation/Konfiguration',
  ),
  'prev' => 
  array (
    0 => 'phar.installation.php',
    1 => 'Installation',
  ),
  'next' => 
  array (
    0 => 'phar.resources.php',
    1 => 'Ressource-Typen',
  ),
  '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">Laufzeit-Konfiguration</h2>
 <p class="simpara">Das Verhalten dieser Funktionen wird
durch Einstellungen in der <var class="filename">php.ini</var> beeinflusst.</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Filesystem and Streams Configuration Options</strong></caption>
   
    <thead>
     <tr>
      <th>Name</th>
      <th>Standard</th>
      <th>Veränderbar</th>
      <th>Changelog</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">Hier eine kurze Erklärung der
Konfigurationsoptionen:</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">Hinweis</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">Hinweis</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">Achtung</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>Beispiel #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); ?>