The behaviour of these functions is affected by settings in php.ini.
Here's a short explanation of the configuration directives.
mime_magic.debug
Enable/disable debugging.
mime_magic.magicfile
The path to the magic.mime file.