<?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 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.finfo-close.php',
    1 => 'finfo_close',
    2 => 'Close finfo instance',
  ),
  'up' => 
  array (
    0 => 'ref.fileinfo.php',
    1 => 'Fileinfo Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.finfo-buffer.php',
    1 => 'finfo_buffer',
  ),
  'next' => 
  array (
    0 => 'function.finfo-file.php',
    1 => 'finfo_file',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/fileinfo/functions/finfo-close.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.finfo-close" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">finfo_close</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_close</span> &mdash; <span class="dc-title">Close finfo instance</span></p>

 </div>
 <div id="function.finfo-close-refsynopsisdiv">
  <div class="warning"><strong class="warning">Avviso</strong><p class="simpara">This function has been
<em>DEPRECATED</em> as of PHP 8.5.0. Relying on this function
is highly discouraged.</p></div>
 </div>
 <div class="refsect1 description" id="refsect1-function.finfo-close-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="attribute"><a href="class.deprecated.php">#[\Deprecated]</a> </span><br>
   <span class="methodname"><strong>finfo_close</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="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>


  <p class="simpara">
   This function used to close the instance opened by <span class="function"><a href="function.finfo-open.php" class="function">finfo_open()</a></span> until PHP 7.4,
   but it&#039;s a no-op since the <span class="classname"><a href="class.finfo.php" class="classname">finfo</a></span> resource to object conversion done in PHP 8.0,
   and has been deprecated in PHP 8.5.
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-function.finfo-close-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <dl>
   
    <dt><code class="parameter">finfo</code></dt>
    <dd>
     <p class="para">An <span class="classname"><a href="class.finfo.php" class="classname">finfo</a></span> instance, returned by <span class="function"><a href="function.finfo-open.php" class="function">finfo_open()</a></span>.</p>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.finfo-close-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="simpara">
   Always returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.finfo-close-changelog">
  <h3 class="title">Log delle modifiche</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Versione</th>
      <th>Descrizione</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.5.0</td>
      <td>
       This function has been deprecated.
      </td>
     </tr>

     <tr>
      <td>8.5.0</td>
      <td>
       The return type is <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> now; previously, it was <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>.
      </td>
     </tr>

     <tr>
      <td>8.1.0</td>
      <td>
       This function is a <abbr>NOP</abbr> now.
      </td>
     </tr>

     <tr>
 <td>8.1.0</td>
 <td>
  The <code class="parameter">finfo</code> parameter expects an <span class="classname"><a href="class.finfo.php" class="classname">finfo</a></span>
  instance now; previously, a <a href="language.types.resource.php" class="link">resource</a> was expected.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


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