ZF-9068: File_Transfer_Adapter_Abstract: _detectMimeType() uses undeclared variable $magicFile

Issue Type: Bug Created: 2010-02-03T01:30:32.000+0000 Last Updated: 2010-02-09T02:06:44.000+0000 Status: Resolved Fix version(s): - 1.10.1 (10/Feb/10)

Reporter: Paul Kievits (paulk) Assignee: Thomas Weidner (thomas) Tags: - Zend_File_Transfer

Related issues: - ZF-9107



In the File_Transfer_Adapter_Abstract class there's a function called _detectMimeType(). This function uses the finfo class to get the files mime type. If your magic libraries are in an atypical place you need to enter the libraries' location as the classes second parameter. In the _detectMimeType() function this is done by using the $magicFile variable (if it's set). However the variable is never set and can't be set anywhere other than by inserting a dirty hack in the function...


Posted by Thomas Weidner (thomas) on 2010-02-04T11:41:34.000+0000

Fixed with r20911

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.