Edit report at http://bugs.php.net/bug.php?id=54952&edit=1
ID: 54952 Updated by: il...@php.net Reported by: daniel at bojdo dot eu Summary: Finfo invalid mime type detect for webm format -Status: Open +Status: Bogus Type: Bug Package: Filesystem function related Operating System: Debian 6 32bit PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. The issue is with the libmagic library which is the one responsible for file type detection. Previous Comments: ------------------------------------------------------------------------ [2011-05-30 11:05:45] daniel at bojdo dot eu Description: ------------ Finfo extention detects invalid mime type for webm video format. "application/octet-stream; charset=binary" instead of "video/webm" Test script: --------------- <?php $f = new finfo(); echo $f->file('MyVideo.webm',FILEINFO_MIME); // outputs "application/octet-stream; charset=binary" but should be "video/webm" Expected result: ---------------- video/webm Actual result: -------------- application/octet-stream; charset=binary ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54952&edit=1