Doc #64799 [Com]: Discussion of magic file selection is incorrect.

From: Date: Thu, 09 May 2013 13:12:35 +0000
Subject: Doc #64799 [Com]: Discussion of magic file selection is incorrect.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9801@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 Comment by: weierophinney@php.net Reported by: weierophinney@php.net Summary: Discussion of magic file selection is incorrect. Status: Open Type: Documentation Problem Package: Documentation problem Operating System: N/A PHP Version: 5.4.15 Block user comment: N Private report: N New Comment: 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." Previous Comments: ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#9801) next »