<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.fileinfo.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'fileinfo.constants.php',
    1 => '预定义常量',
    2 => '预定义常量',
  ),
  'up' => 
  array (
    0 => 'book.fileinfo.php',
    1 => 'Fileinfo',
  ),
  'prev' => 
  array (
    0 => 'fileinfo.resources.php',
    1 => '资源类型',
  ),
  'next' => 
  array (
    0 => 'ref.fileinfo.php',
    1 => 'Fileinfo 函数',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/fileinfo/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="fileinfo.constants" class="appendix">
 <h1 class="title">预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>
  
   <dt id="constant.fileinfo-none">
    <strong><code><a href="fileinfo.constants.php#constant.fileinfo-none">FILEINFO_NONE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     无特殊处理。
    </span>
   </dd>
  
  
   <dt id="constant.fileinfo-symlink">
    <strong><code><a href="fileinfo.constants.php#constant.fileinfo-symlink">FILEINFO_SYMLINK</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     跟随符号链接。
    </span>
   </dd>
  
  
   <dt id="constant.fileinfo-mime-type">
    <strong><code><a href="fileinfo.constants.php#constant.fileinfo-mime-type">FILEINFO_MIME_TYPE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     返回 mime 类型。
    </span>
    <span class="simpara">
     自 PHP 5.3.0 可用。
    </span>
   </dd>
  
  
   <dt id="constant.fileinfo-mime-encoding">
    <strong><code><a href="fileinfo.constants.php#constant.fileinfo-mime-encoding">FILEINFO_MIME_ENCODING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
      返回文件的 mime 编码。
    </span>
   </dd>
  
  
   <dt id="constant.fileinfo-mime">
    <strong><code><a href="fileinfo.constants.php#constant.fileinfo-mime">FILEINFO_MIME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
      按照 RFC 2045 定义的格式返回文件 mime 类型和编码。
    </span>
   </dd>
  
  
   <dt id="constant.fileinfo-compress">
    <strong><code><a href="fileinfo.constants.php#constant.fileinfo-compress">FILEINFO_COMPRESS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     解压缩文件。
    </span>
    <span class="simpara">
     由于线程安全问题而禁用。
    </span>
   </dd>
  
  
   <dt id="constant.fileinfo-devices">
    <strong><code><a href="fileinfo.constants.php#constant.fileinfo-devices">FILEINFO_DEVICES</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
      查看设备的块内容或字符。
    </span>
   </dd>
  
  
   <dt id="constant.fileinfo-continue">
    <strong><code><a href="fileinfo.constants.php#constant.fileinfo-continue">FILEINFO_CONTINUE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
      返回全部匹配的类型。
    </span>
   </dd>
  
  
   <dt id="constant.fileinfo-preserve-atime">
    <strong><code><a href="fileinfo.constants.php#constant.fileinfo-preserve-atime">FILEINFO_PRESERVE_ATIME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
      如果可以的话，尽可能保持原始的访问时间。
    </span>
   </dd>
  
  
   <dt id="constant.fileinfo-raw">
    <strong><code><a href="fileinfo.constants.php#constant.fileinfo-raw">FILEINFO_RAW</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
      对于不可打印字符不转换成
      <code class="literal">\ooo</code> 八进制表示格式。
    </span>
   </dd>
  
  
   <dt id="constant.fileinfo-extension">
    <strong><code><a href="fileinfo.constants.php#constant.fileinfo-extension">FILEINFO_EXTENSION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     根据在文件中检测到的 MIME 类型返回适当的文件扩展名。
    </span>
    <span class="simpara">
     有的文件类型具有多种扩展名，例如 <code class="literal">JPEG</code> 将会返回多个扩展名，以斜线分隔，比如
     <code class="literal">&quot;jpeg/jpg/jpe/jfif&quot;</code>。如果在 <var class="filename">magic.mime</var>
     数据库里类型未知，则返回的是 <code class="literal">&quot;???&quot;</code>。
    </span>
    <span class="simpara">
     PHP 7.2.0 起有效。
    </span>
   </dd>
  
  
   <dt id="constant.fileinfo-apple">
    <strong><code><a href="fileinfo.constants.php#constant.fileinfo-apple">FILEINFO_APPLE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     返回 Apple 创建者和类型。
    </span>
   </dd>
  
 </dl>
</div>
<?php manual_footer($setup); ?>