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.
FILEINFO_NONE
(integer)
FILEINFO_SYMLINK
(integer)
FILEINFO_MIME_TYPE
(integer)
FILEINFO_MIME_ENCODING
(integer)
FILEINFO_MIME
(integer)
FILEINFO_COMPRESS
(integer)
FILEINFO_DEVICES
(integer)
FILEINFO_CONTINUE
(integer)
FILEINFO_PRESERVE_ATIME
(integer)
FILEINFO_RAW
(integer)
\ooo
octal
representation.
FILEINFO_EXTENSION
(integer)
JPEG
images, then the return value is multiple extensions separated by a forward slash e.g.:
"jpeg/jpg/jpe/jfif"
. For unknown types not available in the
magic.mime database, then return value is "???"
.
Available since PHP 7.2.0.