Doc #69773 [NEW]: Fileinfo is unable to load internal MIME database

From: Date: Mon, 08 Jun 2015 16:17:58 +0000
Subject: Doc #69773 [NEW]: Fileinfo is unable to load internal MIME database
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12393@lists.php.net to get a copy of this message
From: letynsoft at gmail dot com Operating system: Ubuntu 15.04 (upgraded) PHP version: 5.6.9 Package: *General Issues Bug Type: Documentation Problem Bug description:Fileinfo is unable to load internal MIME database Description: ------------ When i do not pass the second parameter to the new finfo() constructor (or pass NULL), it is supposed to load it's internal database but it doesn't load that. it just sais: Warning: finfo::file(): Failed identify data 0:no magic files loaded. It does the same, if i pass the /etc/magic.mime, but that file appears to be empty. PS: i didn't find the PHP version in the dropdown, my PHP Version 5.6.4-4ubuntu6 PS2: I also didn't find the Fileinfo package in the 'Package Affected' dropdown (it is in the Advanced search, but not in the Report a Bug form) Test script: --------------- $finfo = new finfo(FILEINFO_MIME); $mime = $finfo->file('/path/to/file'); Expected result: ---------------- it should produce the file mime type Actual result: -------------- Warning is thrown -- Edit bug report at https://bugs.php.net/bug.php?id=69773&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69773&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69773&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69773&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69773&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69773&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69773&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69773&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69773&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69773&r=support Expected behavior: https://bugs.php.net/fix.php?id=69773&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69773&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69773&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69773&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69773&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69773&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69773&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69773&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69773&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69773&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69773&r=mysqlcfg

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