<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ffi.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'ffi.configuration.php',
    1 => 'Configuration &agrave; l\'ex&eacute;cution',
    2 => 'Configuration &agrave; l\'ex&eacute;cution',
  ),
  'up' => 
  array (
    0 => 'ffi.setup.php',
    1 => 'Installation/Configuration',
  ),
  'prev' => 
  array (
    0 => 'ffi.installation.php',
    1 => 'Installation',
  ),
  'next' => 
  array (
    0 => 'ffi.examples.php',
    1 => 'Exemples',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/ffi/setup.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ffi.configuration" class="section">
  <h2 class="title">Configuration à l&#039;exécution</h2>
  <p class="simpara">Le comportement de ces fonctions est
affecté par la configuration dans le fichier <var class="filename">php.ini</var>.</p>
  <p class="para">
   <table class="doctable table">
    <caption><strong>FFI Options de configuration</strong></caption>
    
     <thead>
      <tr>
       <th>Nom</th>
       <th>Défaut</th>
       <th>Modifiable</th>
       <th>Historique</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td><a href="ffi.configuration.php#ini.ffi.enable" class="link">ffi.enable</a></td>
       <td>&quot;preload&quot;</td>
       <td><strong><code>INI_SYSTEM</code></strong></td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td><a href="ffi.configuration.php#ini.ffi.preload" class="link">ffi.preload</a></td>
       <td>&quot;&quot;</td>
       <td><strong><code>INI_SYSTEM</code></strong></td>
       <td class="empty">&nbsp;</td>
      </tr>

     </tbody>
    
   </table>

   Pour plus de détails sur les modes INI_*,
        reportez-vous à <a href="configuration.changes.modes.php" class="xref">O&ugrave; une directive de configuration peut &ecirc;tre modifi&eacute;e</a>.
  </p>

  <p class="para">Voici un éclaircissement sur
l&#039;utilisation des directives de configuration.</p>

  <dl>
   
    <dt id="ini.ffi.enable">
     <code class="parameter">ffi.enable</code>
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
    </dt>
    <dd>
     <span class="simpara">
      Permet d&#039;activer (<code class="literal">&quot;true&quot;</code>) ou de désactiver
      (<code class="literal">&quot;false&quot;</code>) l&#039;utilisation de l&#039;API FFI, ou de la restreindre uniquement
      à l&#039;interface CLI SAPI et aux fichiers préchargés (<code class="literal">&quot;preload&quot;</code>).
     </span>
     <span class="simpara">
      Les restrictions de l&#039;API FFI n&#039;affectent que la classe <span class="classname"><a href="class.ffi.php" class="classname">FFI</a></span>,
      mais pas les fonctions surchargées des objets <span class="classname"><a href="class.ffi-cdata.php" class="classname">FFI\CData</a></span>.
      Cela signifie qu&#039;il est possible de créer certains objets <span class="classname"><a href="class.ffi-cdata.php" class="classname">FFI\CData</a></span>
      dans des fichiers préchargés, puis de les utiliser directement dans des scripts PHP.
     </span>
    </dd>
   
   
    <dt id="ini.ffi.preload">
     <code class="parameter">ffi.preload</code>
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
    </dt>
    <dd>
     <span class="simpara">
      Permet le préchargement des liaisons FFI au démarrage, ce qui n&#039;est pas possible avec <span class="methodname"><a href="ffi.load.php" class="methodname">FFI::load()</a></span>
      si <a href="opcache.configuration.php#ini.opcache.preload-user" class="link">opcache.preload_user</a> est défini.
      Cette directive accepte une liste de noms de fichiers délimitée par <strong><code><a href="dir.constants.php#constant.directory-separator">DIRECTORY_SEPARATOR</a></code></strong>.
      Les liaisons préchargées sont accessibles en appelant <span class="methodname"><a href="ffi.scope.php" class="methodname">FFI::scope()</a></span>.
     </span>
    </dd>
   
  </dl>
 </div><?php manual_footer($setup); ?>