|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54016 finfo_file: Cannot determine filetype in archives
Submitted: 2011-02-14 16:20 UTC Modified: 2011-03-30 12:39 UTC
From: Assigned: bjori (profile)
Status: Closed Package: Filesystem function related
PHP Version: 5.3.5 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2011-02-14 16:20 UTC]
finfo_file() does not support stream wrappers, such as zip://, even though it has 
stream context option :(

Test script:
$fp = finfo_open(FILEINFO_MIME_TYPE);
$png = "zip://" . __DIR__ . "/resources/"

var_dump(finfo_file($fp, $png));

Expected result:
string(9) "image/png"

Actual result:
PHP Warning:  finfo_file(): File or path not found 
src/branches/PHP_5_3/ext/fileinfo/tests/resources/' in 
/home/bjori/Work/OSS/svn-php/php/php-src/branches/PHP_5_3/t.php on line 5


finfo.patch (last revision 2011-02-14 15:21 UTC by

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-14 16:21 UTC]
The following patch has been added/updated:

Patch Name: finfo.patch
Revision:   1297696874
 [2011-02-14 16:21 UTC]
-Assigned To: +Assigned To: bjori
 [2011-02-14 16:32 UTC]
Automatic comment from SVN on behalf of bjori
Log: Bug#54016 (finfo_file() Cannot determine filetype in archives)
 [2011-02-14 16:34 UTC]
Automatic comment from SVN on behalf of bjori
Log: bfn for #54016
 [2011-03-30 12:39 UTC]
-Status: Assigned +Status: Closed
 [2011-03-30 12:39 UTC]
Forgot to close this report.. already fixed in the 5.3.6
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Aug 18 22:05:45 2022 UTC