php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54714 finfo_open doesn't load .mgc when default magic_file is a directory
Submitted: 2011-05-12 00:23 UTC Modified: 2016-08-26 13:55 UTC
From: hugh at catalyst dot net dot nz Assigned:
Status: Open Package: Unknown/Other Function
PHP Version: 5.3.6 OS: Ubuntu 11.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-05-12 00:23 UTC] hugh at catalyst dot net dot nz
Description:
------------
The finfo_open function has the 2nd argument magic_file. It's default is meant to 
be the following:

If not specified, the MAGIC environment variable is used. If this variable is not 
set either, /usr/share/misc/magic is used by default. A .mime and/or .mgc suffix 
is added if needed.

On my system, the /usr/share/misc/magic is a directory (with no files beneath 
it).

I think in the case that the default magic_file is a directory, load the next 
default (/usr/share/misc/magic.mgc)




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-26 13:55 UTC] cmb@php.net
-Package: Filesystem function related +Package: Unknown/Other Function
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Oct 18 17:01:30 2019 UTC