note 124595 added to function.mime-content-type
| From: | DavidSpector@php.net | Date: | Thu, 09 Jan 2020 20:40:20 +0000 |
| Subject: | note 124595 added to function.mime-content-type | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-213835@lists.php.net to get a copy of this message | ||
On Windows, PHP 7.0.30 gave the error message "Fatal error: Uncaught Error: Call to undefined
function mime_content_type()". I saw the following interesting line in my Apache configuration:
#LoadModule mime_magic_module modules/mod_mime_magic.so
so I tried uncommenting it and restarting the Apache service, but still got the same error. A Web
search shows that this function is deprecated. It appears to have been removed from PHP. Not sure
why, but can be worked around with a user function.
----
Server IP: 45.112.84.4
Probable Submitter: 38.142.137.34 (proxied: 98.2.238.89)
----
Manual Page -- http://php.net/manual/en/function.mime-content-type.php
Edit -- https://master.php.net/note/edit/124595
Del: integrated -- https://master.php.net/note/delete/124595/integrated
Del: useless -- https://master.php.net/note/delete/124595/useless
Del: bad code -- https://master.php.net/note/delete/124595/bad+code
Del: spam -- https://master.php.net/note/delete/124595/spam
Del: non-english -- https://master.php.net/note/delete/124595/non-english
Del: in docs -- https://master.php.net/note/delete/124595/in+docs
Del: other reasons-- https://master.php.net/note/delete/124595
Reject -- https://master.php.net/note/reject/124595
Search -- https://master.php.net/manage/user-notes.php