ZF-9320: Zend_Validate_File_MimeType erroneously specifies magic file
If no MAGIC environment variable is set, Zend_Validate_File_MimeType should allow finfo() to fall back on its internal mime database* rather than attempting to load a magic mime file from one of its preset search paths. This is preferable because the internal database is guaranteed to be compatible with libmagic; whereas, the magic files in the file-system are not. In some cases (e.g. Mac OS X 10.5) the magic file in the file-system is incompatible and will produce errors.
*The fileinfo extension (finfo) comes bundled with an internal magic mime database. If no magic file is specified, the internal magic database gets used. This is an undocumented feature of finfo. See: http://svn.php.net/viewvc/php/…