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
[BUGFIX] Call to undefined function mime_content_type()
With PHP 5.2, it might happen that mime_content_type is not
available. This was introduced by #46126 and is now better
sanitized by the patch again.
Reviewed-by: Steffen Ritter
Reviewed-by: Jigal van Hemert
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
#3 Updated by Oliver Hader over 6 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?
#7 Updated by Borries Jensen over 6 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.
#8 Updated by Thorsten Kahler over 6 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.
#9 Updated by Markus Klein over 6 years ago
There's another requirement that might play a role: required library "magic_open"