php-doc-en/reference/fileinfo/constants.xml
2021-04-23 11:35:26 +03:00

165 lines
4.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- Generated by xml_proto.php v2.3. Found in /scripts directory of phpdoc. -->
<appendix xml:id="fileinfo.constants" xmlns="http://docbook.org/ns/docbook">
&reftitle.constants;
&extension.constants;
<variablelist>
<varlistentry xml:id="constant.fileinfo-none">
<term>
<constant>FILEINFO_NONE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
No special handling.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.fileinfo-symlink">
<term>
<constant>FILEINFO_SYMLINK</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Follow symlinks.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.fileinfo-mime-type">
<term>
<constant>FILEINFO_MIME_TYPE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Return the mime type.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.fileinfo-mime-encoding">
<term>
<constant>FILEINFO_MIME_ENCODING</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Return the mime encoding of the file.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.fileinfo-mime">
<term>
<constant>FILEINFO_MIME</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Return the mime type and mime encoding as defined by RFC 2045.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.fileinfo-compress">
<term>
<constant>FILEINFO_COMPRESS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Decompress compressed files.
</simpara>
<simpara>
Disabled due to thread safety issues.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.fileinfo-devices">
<term>
<constant>FILEINFO_DEVICES</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Look at the contents of blocks or character special devices.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.fileinfo-continue">
<term>
<constant>FILEINFO_CONTINUE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Return all matches, not just the first.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.fileinfo-preserve-atime">
<term>
<constant>FILEINFO_PRESERVE_ATIME</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
If possible preserve the original access time.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.fileinfo-raw">
<term>
<constant>FILEINFO_RAW</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Don't translate unprintable characters to a <literal>\ooo</literal> octal
representation.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.fileinfo-extension">
<term>
<constant>FILEINFO_EXTENSION</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Returns the file extension appropriate for the MIME type detected in
the file.
</simpara>
<simpara>
For types that commonly have multiple file extensions, such as <literal>JPEG</literal>
images, then the return value is multiple extensions separated by a forward slash e.g.:
<literal>"jpeg/jpg/jpe/jfif"</literal>. For unknown types not available in the
<filename>magic.mime</filename> database, then return value is <literal>"???"</literal>.
</simpara>
<simpara>
Available since PHP 7.2.0.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</appendix>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->