PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Tools and Utilities » MIME_Type

Utility class for dealing with MIME types

This package is unmaintained.

Download latest release 1.4.1 (there might be newer Composer installable version)

License: LGPL

Description

Provide functionality for dealing with MIME types.
* Parse MIME type.
* Supports full RFC2045 specification.
* Many utility functions for working with and determining info about types.
* Most functions can be called statically.
* Autodetect a file's mime-type, either with fileinfo extension,
mime_magic extension, the 'file' command or an in-built mapping list

Documentation

Manual

Maintainers

Dependencies

Required

Optional

Releases

Bugs

IDStatusTypeVersionDateSummary
#2078ClosedBug2004-08-07_fileAutoDetect should pass file in quotes
#2083ClosedBug2004-08-07get() throws notice about $this->parameters being undefined.
#3719ClosedReq2005-03-06autodetect: If mime_content_type fails, _fileAutoDetect should still be used
#4958ClosedReq2005-08-01MIME_Type: several detection routines
#6095ClosedBug2005-11-28Parameters and comments parsing buggy
#8595ClosedReq1.0.02006-08-30location of the example file
#8603ClosedBug1.0.02006-08-31function _fileAutoDetect() uses System_Command incorrectly
#10408DuplicateBug1.0.02007-03-18File with single quote crashes mime_type
#10568Wont fixReq1.0.02007-03-30Improvement on using MIME_Type class
#13513Wont fixBugCVS2008-03-27syntax error in php4
#13646ClosedReq1.0.02008-04-10Default to Mime Type based on Extension
#14417ClosedBug1.1.12008-07-29Parse Error in Type.php
#14463DuplicateBug1.1.12008-08-06Possible error with PHP 4
#14630ClosedBug1.1.12008-09-10PHP4 error
#16957BogusBug1.2.02009-12-30mpgv / mpga not recognized
#17223BogusReq1.2.02010-03-15This class only returns text/plain
#17969ClosedBugSVN2010-10-18Sorry, couldn't determine file type.
#18785DuplicateReqSVN2011-09-04Change license
#19045Wont fixReq1.3.02011-11-151.3.0 triggers bug in finfo_open()
#19609ClosedBug1.3.12012-09-20mime type detection by file extension failes with uppercase extensions
#20079ClosedBug1.3.22013-10-02Package Corruption
#21238ClosedBug1.4.12017-08-25composer.json suggests non-existing "pear/system_command"