Doc #64799 [Opn->Dup]: Discussion of magic file selection is incorrect.
| From: | aharvey@php.net | Date: | Thu, 16 May 2013 19:20:42 +0000 |
| Subject: | Doc #64799 [Opn->Dup]: Discussion of magic file selection is incorrect. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9832@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64799&edit=1
ID: 64799
Updated by: aharvey@php.net
Reported by: weierophinney@php.net
Summary: Discussion of magic file selection is incorrect.
-Status: Open
+Status: Duplicate
Type: Documentation Problem
Package: Documentation problem
Operating System: N/A
PHP Version: 5.4.15
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
Sorry, hadn't gotten this far in my bugmail when I reopened the other bug. Closing in favour of
bug #64793.
Previous Comments:
------------------------------------------------------------------------
[2013-05-09 13:12:35] weierophinney@php.net
Additionally, a note should likely be added stating something along the lines of
"If finfo_open is raising warnings or errors, you may want to unset your $MAGIC
environment variable to force usage of PHP's bundled magic.mime database."
------------------------------------------------------------------------
[2013-05-09 13:11:24] weierophinney@php.net
Description:
------------
---
From manual page: http://www.php.net/function.finfo-open#refsect1-
function.finfo-open-parameters
---
Please see https://bugs.php.net/bug.php?id=64793
for more details. Essentially,
the following statements are incorrect:
"Name of a magic database file, usually something like /path/to/magic.mime. 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.
Passing NULL or an empty string will be equivalent to the default value."
If null or an empty string is passed, PHP uses its bundled magic.mime database.
Additionally, this is _recommended_, as PHP may or may not be able to properly
parse other magic.mime databases.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64799&edit=1