<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.fileinfo.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.finfo-set-flags.php',
    1 => 'finfo_set_flags',
    2 => 'D&eacute;finit des options de configuration libmagic',
  ),
  'up' => 
  array (
    0 => 'ref.fileinfo.php',
    1 => 'Fonctions Fileinfo',
  ),
  'prev' => 
  array (
    0 => 'function.finfo-open.php',
    1 => 'finfo_open',
  ),
  'next' => 
  array (
    0 => 'function.mime-content-type.php',
    1 => 'mime_content_type',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/fileinfo/functions/finfo-set-flags.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.finfo-set-flags" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">finfo_set_flags</h1>
  <h1 class="refname">finfo::set_flags</h1>
  <p class="verinfo">(PHP &gt;= 5.3.0, PHP 7, PHP 8, PECL fileinfo &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">finfo_set_flags</span> -- <span class="refname">finfo::set_flags</span> &mdash; <span class="dc-title">Définit des options de configuration libmagic</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.finfo-set-flags-description">
  <h3 class="title">Description</h3>
  <p class="simpara">Style procédural</p>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>finfo_set_flags</strong></span>(<span class="methodparam"><span class="type"><a href="class.finfo.php" class="type finfo">finfo</a></span> <code class="parameter">$finfo</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$flags</code></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>

  <p class="simpara">Style orienté objet</p>
  <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="finfo.set-flags.php" class="methodname">finfo::set_flags</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$flags</code></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>


  <p class="simpara">
   Cette fonction définit diverses options de Fileinfo. Les options peuvent être
   aussi fixées directement dans <span class="function"><a href="function.finfo-open.php" class="function">finfo_open()</a></span> ou par
   d&#039;autres fonctions Fileinfo.
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-function.finfo-set-flags-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   
    <dt><code class="parameter">finfo</code></dt>
    <dd>
     <p class="para">Une instance <span class="classname"><a href="class.finfo.php" class="classname">finfo</a></span>, retourné par <span class="function"><a href="function.finfo-open.php" class="function">finfo_open()</a></span>.</p>
    </dd>
   
   
    <dt><code class="parameter">flags</code></dt>
    <dd>
     <span class="simpara">
      Une ou une union de plusieurs <a href="fileinfo.constants.php" class="link">constantes Fileinfo</a>.
     </span>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.finfo-set-flags-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="simpara">
   Retourne toujours <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.finfo-set-flags-changelog">
  <h3 class="title">Historique</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.1.0</td>
 <td>
  La paramètre <code class="parameter">finfo</code> attend désormais une instance de
  <span class="classname"><a href="class.finfo.php" class="classname">finfo</a></span> ; auparavant, une <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> était attendu.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


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