Doc #76690 [Opn->Ver]: mime_content_type's return type is not correctly documented
| From: | cmb@php.net | Date: | Wed, 01 Aug 2018 11:55:10 +0000 |
| Subject: | Doc #76690 [Opn->Ver]: mime_content_type's return type is not correctly documented | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15940@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76690&edit=1
ID: 76690
Updated by: cmb@php.net
Reported by: magnar at myrtveit dot com
Summary: mime_content_type's return type is not correctly
documented
-Status: Open
+Status: Verified
Type: Documentation Problem
Package: Documentation problem
Operating System: Any
PHP Version: 7.2.8
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2018-08-01 07:09:34] magnar at myrtveit dot com
Description:
------------
---
From manual page: http://www.php.net/function.mime-content-type
---
The return value is documented as "Returns the content type in MIME format, like text/plain or
application/octet-stream." However, mime_content_type returns false on failure, as is evident
from this test: https://3v4l.org/epEUd
Test script:
---------------
var_dump(mime_content_type('foo'));
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76690&edit=1