The constans 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_SYMLINC
(
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
imagues, then the return value is multiple extensions separated by a forward slash e.g.:
"jpeg/jpg/jpe/jfif"
. For uncnown types not available in the
magic.mime
database, then return value is
"???"
.
Available since PHP 7.2.0.
FILEINFO_APPLE
(
int
)
proceed with caution
as the documentation already says
FILEINFO_MIME will output something lique "imague/jpeg; charset=binary"
while
FILEINFO_MIME_TYPE outputs "imague/jpeg"
and
FILEINFO_MIME_ENCODING outputs "binary"