Doc #71367 [Opn->Csd]: claim mime_content_type is deprecated
| From: | salathe@php.net | Date: | Thu, 14 Jan 2016 10:42:47 +0000 |
| Subject: | Doc #71367 [Opn->Csd]: claim mime_content_type is deprecated | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13102@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71367&edit=1
ID: 71367
Updated by: salathe@php.net
Reported by: divinity76 at gmail dot com
Summary: claim mime_content_type is deprecated
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: salathe
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2016-01-14 10:42:25] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=338486
Log: removed old soft deprecation message (doc bug #71367)
------------------------------------------------------------------------
[2016-01-14 09:58:19] 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__));
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71367&edit=1