Edit report at http://pear.php.net/bugs/bug.php?id=19045&edit=1
ID: 19045
Updated by: [email protected]
Reported By: craig+pear at constantine dot name
Summary: 1.3.0 triggers bug in finfo_open()
Status: Open
Type: Feature/Change Request
Package: MIME_Type
Operating System: Linux/Ubuntu
Package Version: 1.3.0
PHP Version: 5.3.1
Roadmap Versions:
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2011-11-15 19:03:25] cconstantine
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?
------------------------------------------------------------------------