|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-11-24 14:54 UTC] ab@php.net
-Status: Open
+Status: Not a bug
[2016-11-24 14:54 UTC] ab@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 09:00:02 2026 UTC |
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