php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54952 Finfo invalid mime type detect for webm format
Submitted: 2011-05-30 11:05 UTC Modified: 2011-05-30 14:40 UTC
From: daniel at bojdo dot eu Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.3.6 OS: Debian 6 32bit
Private report: No CVE-ID: None
 [2011-05-30 11:05 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-30 14:40 UTC] iliaa@php.net
-Status: Open +Status: Bogus
 [2011-05-30 14:40 UTC] iliaa@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 19:01:28 2024 UTC