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
(int)
FILEINFO_SYMLINK
(int)
FILEINFO_MIME_TYPE
(int)
FILEINFO_MIME_ENCODING
(int)
FILEINFO_MIME
(int)
FILEINFO_COMPRESS
(int)
FILEINFO_DEVICES
(int)
FILEINFO_CONTINUE
(int)
FILEINFO_PRESERVE_ATIME
(int)
FILEINFO_RAW
(int)
\ooo
octal
representation.
FILEINFO_EXTENSION
(int)
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.
FILEINFO_APPLE
(int)