Bug #54714 [Opn]: finfo_open doesn't load .mgc when default magic_file is a directory
| From: | cmb@php.net | Date: | Mon, 09 Nov 2020 17:01:39 +0000 |
| Subject: | Bug #54714 [Opn]: finfo_open doesn't load .mgc when default magic_file is a directory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-230237@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=54714&edit=1
ID: 54714
Updated by: cmb@php.net
Reported by: hugh at catalyst dot net dot nz
Summary: finfo_open doesn't load .mgc when default magic_file
is a directory
Status: Open
Type: Bug
Package: Unknown/Other Function
Operating System: Ubuntu 11.04
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
That documentation has been fixed long ago (see bug #64793), so
this ticket is obsolete.
Previous Comments:
------------------------------------------------------------------------
[2011-05-12 00:23:54] 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)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=54714&edit=1