Call to undefined function mime_content_type()
Call to undefined function mime_content_type() on fetching the mime type of the favicon.
I'm still investigating the PHP versions and environment. However it looks like a superfluous regression from #46126
Updated by Oliver Hader about 8 years ago
Borries Jensen wrote:
After an update from 4.5.25 to 4.5.26 the same problem.
PHP Version used on one Dev/Test-Server is 5.2.5
Thanks for your response. What distribution/operating system and which version are you using?
Is it a custom compiled PHP version or a standard package of PHP that is being used?
Updated by Borries Jensen about 8 years ago
Hm, am i right that to use the function mime_content_type() the server needs not only the apache module "mod_mime" but also "mod_mime_magic" ?
I just checked the server which causes the mentioned error.
Only "mod_mime" is active there.
Maybe that's causing the error.
Updated by Thorsten Kahler about 8 years ago
According to http://php.net/manual/en/fileinfo.installation.php the Fileinfo extension requires a (patched)
magic_open library (
libmagic) in PHP versions < 5.3.0. It is provided and enabled by default, but still not part of the PHP core.
As of PHP 5.3.0 (?)
mime_content_type() is deprecated and replaced by the
All in all: these functions/classes seem to be moving ground and might require a more sophisticated approach. I think a wrapper method to abstract from the different implementations should help.
Updated by Markus Klein about 8 years ago
There's another requirement that might play a role: required library "magic_open"