<?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 => 'en',
  ),
  'this' => 
  array (
    0 => 'fileinfo.constants.php',
    1 => 'Predefined Constants',
    2 => 'Predefined Constants',
  ),
  'up' => 
  array (
    0 => 'book.fileinfo.php',
    1 => 'Fileinfo',
  ),
  'prev' => 
  array (
    0 => 'fileinfo.resources.php',
    1 => 'Resource Types',
  ),
  'next' => 
  array (
    0 => 'ref.fileinfo.php',
    1 => 'Fileinfo Functions',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    '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">Predefined Constants</h1>

 <p class="simpara">
The constants below are defined by this extension, and
will only be available when the extension has either
been compiled into PHP or dynamically loaded at runtime.
</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">
     No special handling.
    </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">
     Follow symlinks.
    </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">
     Return the mime type.
    </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">
     Return the mime encoding of the file.
    </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">
     Return the mime type and mime encoding as defined by RFC 2045.
    </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">
     Decompress compressed files.
    </span>
    <span class="simpara">
     Disabled due to thread safety issues.
    </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">
     Look at the contents of blocks or character special devices.
    </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">
     Return all matches, not just the first.
    </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">
     If possible preserve the original access time.
    </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">
     Don&#039;t translate unprintable characters to a <code class="literal">\ooo</code> octal
     representation.
    </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">
     Returns the file extension appropriate for the MIME type detected in
     the file.
    </span>
    <span class="simpara">
     For types that commonly have multiple file extensions, such as <code class="literal">JPEG</code>
     images, then the return value is multiple extensions separated by a forward slash e.g.:
     <code class="literal">&quot;jpeg/jpg/jpe/jfif&quot;</code>. For unknown types not available in the
     <var class="filename">magic.mime</var> database, then return value is <code class="literal">&quot;???&quot;</code>.
    </span>
    <span class="simpara">
     Available since 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">
     Return the Apple creator and type.
    </span>
   </dd>
  
 </dl>
</div>
<?php manual_footer($setup); ?>