Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.1

Request #19045 1.3.0 triggers bug in finfo_open()
Submitted: 2011-11-16 00:03 UTC
From: cconstantine Assigned:
Status: Wont fix Package: MIME_Type (version 1.3.0)
PHP Version: 5.3.1 OS: Linux/Ubuntu
Roadmaps: (Not assigned)    
Subscription  


 [2011-11-16 00:03 UTC] cconstantine (Craig Constantine)
Description: ------------ The changes to enable specifying the location of the magicFile leads to finfo_open() being called, normally, with its second arg ($this->magicFile) being null. Seems that triggers a bug in info_open() which does not behave well when its second arg is Null. Could we add [an ugly hack] to call finfo_open() with its second arg IFF $this->magicFile isn't Null?

Comments

 [2011-11-16 00:07 UTC] cconstantine (Craig Constantine)
Note that I'm not certain I've diagnosed this correctly. I'm getting [<a href='function.finfo-open'>function.finfo-open</a>]: Failed to load magic database at ''." line 497 file /usr/share/php/MIME/Type.php in cases where the second arg to finfo_open() is Null. And there are comments under http://us2.php.net/manual/en/function.finfo-open.php that link to bug http://bugs.php.net/bug.php?id=51732
 [2012-02-07 21:39 UTC] cconstantine (Craig Constantine)
bump?
 [2013-09-23 18:37 UTC] cweiske (Christian Weiske)
-Status: Open +Status: Wont fix
PHP 5.2.0 is EOL'd, PHP 5.3.0 and 5.3.1 in which the bug appears are also long outdated. I won't add a workaround for an outdated PHP version.