Doc #64799 [NEW]: Discussion of magic file selection is incorrect.
| From: | weierophinney@php.net | Date: | Thu, 09 May 2013 13:11:24 +0000 |
| Subject: | Doc #64799 [NEW]: Discussion of magic file selection is incorrect. | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-9800@lists.php.net to get a copy of this message | ||
From: weierophinney
Operating system: N/A
PHP version: 5.4.15
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Discussion of magic file selection is incorrect.
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 bug report at https://bugs.php.net/bug.php?id=64799&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64799&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64799&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64799&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64799&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64799&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64799&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64799&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64799&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64799&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64799&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=64799&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=64799&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64799&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64799&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64799&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64799&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64799&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64799&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64799&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64799&r=mysqlcfg