php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #49635 Function mime_content_type is part of the fileinfo extension
Submitted: 2009-09-22 22:47 UTC Modified: 2009-11-13 22:06 UTC
From: carsten_sttgt at gmx dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.3.0 OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: carsten_sttgt at gmx dot de
New email:
PHP Version: OS:

 

 [2009-09-22 22:47 UTC] carsten_sttgt at gmx dot de
Description:
------------
Hello,

as of PHP 5.3.0 the function mime_content_type() seems part of the fileinfo extension.

But in the manual it's not listed as a function of this extension. Instead it's listed as a function for the mime_magic/mimeinfo extension (available for all PHP5).

I came across this issue, because I still have a mime_magic extension in PHP 5.3.0. And then I have tried to load the fileinfo extension, which was not possible because mime_content_type() was already defined.

(also there seems no configure switch for fileinfo, to disable this compatibility function.)

Regards,
Carsten



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-13 22:06 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2009-11-13 22:06 UTC] svn@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=290709
Log: Move mime_content_type (bug #49635)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 22:00:01 2026 UTC