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: 2021-03-03 12:47 UTC
From: hugh at catalyst dot net dot nz Assigned: cmb (profile)
Status: Closed Package: Unknown/Other Function
PHP Version: 5.3.6 OS: Ubuntu 11.04
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hugh at catalyst dot net dot nz
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-26 13:55 UTC] cmb@php.net
-Package: Filesystem function related +Package: Unknown/Other Function
 [2020-11-09 17:01 UTC] cmb@php.net
That documentation has been fixed long ago (see bug #64793), so
this ticket is obsolete.
 [2021-03-03 12:47 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-03-03 12:47 UTC] cmb@php.net
… so can be closed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC