<?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 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.finfo-close.php',
    1 => 'finfo_close',
    2 => '关闭 finfo 实例',
  ),
  'up' => 
  array (
    0 => 'ref.fileinfo.php',
    1 => 'Fileinfo 函数',
  ),
  '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' => 'zh',
    '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">关闭 finfo 实例</span></p>

 </div>
 <div id="function.finfo-close-refsynopsisdiv">
  <div class="warning"><strong class="warning">警告</strong><p class="simpara">此函数自 PHP 8.5.0
起<em>弃用</em>。强烈建议不要应用此函数。</p></div>
 </div>
 <div class="refsect1 description" id="refsect1-function.finfo-close-description">
  <h3 class="title">说明</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">
   此函数用于关闭由 <span class="function"><a href="function.finfo-open.php" class="function">finfo_open()</a></span> 打开的实例，直到 PHP 7.4，
   但自 PHP 8.0 以来，由于 <span class="classname"><a href="class.finfo.php" class="classname">finfo</a></span> 资源到对象的转换，
   此函数已成为无操作，并且在 PHP 8.5 中已被弃用。
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-function.finfo-close-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt><code class="parameter">finfo</code></dt>
    <dd>
     <p class="para">经 <span class="function"><a href="function.finfo-open.php" class="function">finfo_open()</a></span> 返回的 <span class="classname"><a href="class.finfo.php" class="classname">finfo</a></span> 实例。</p>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.finfo-close-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   总是返回 <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">更新日志</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>版本</th>
      <th>说明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.5.0</td>
      <td>
       此函数已被弃用。
      </td>
     </tr>

     <tr>
      <td>8.5.0</td>
      <td>
       返回类型现在是 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>；之前是 <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>。
      </td>
     </tr>

     <tr>
      <td>8.1.0</td>
      <td>
       此函数现在是 <abbr>NOP（空操作）</abbr>。
      </td>
     </tr>

     <tr>
 <td>8.1.0</td>
 <td>
  <code class="parameter">finfo</code> 参数现在接受 <span class="classname"><a href="class.finfo.php" class="classname">finfo</a></span>
  实例，之前接受 <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>。
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


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