php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71367 claim mime_content_type is deprecated
Submitted: 2016-01-14 09:58 UTC Modified: 2016-01-14 10:42 UTC
From: divinity76 at gmail dot com Assigned: salathe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2016-01-14 09:58 UTC] divinity76 at gmail dot com
Description:
------------
according to http://php.net/manual/en/function.mime-content-type.php , mime_content_type() is deprecated, but it doesn't say when it was deprecated, 

and when testing on 3v4l.org , seems it never throws a E_DEPRECATED or similar, 
and a guy on freenode #php said:

<salathe> hanshenrik__: the deprecation message is a hangover from the old mime_magic extension that the function used to be in, before Fileinfo came along

thus i wonder, is it really deprecated? and when, if ever, was it deprecated? could we get some more documentation here?

Test script:
---------------
<?php
error_reporting(~0);
ini_set("display_erronrs","on");
var_dump(mime_content_type(__FILE__));



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-14 10:42 UTC] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=338486
Log: removed old soft deprecation message (doc bug #71367)
 [2016-01-14 10:42 UTC] salathe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: salathe
 [2016-01-14 10:42 UTC] salathe@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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 11 05:01:27 2024 UTC