ZF-7376: Zend_File_Transfer_Adapter_Abstract: Unable to set magicFile-Option


PHP's fileinfo-Extension has the possibility to take your own Magic-File for MimeType-Determination. In ZF you "can" do this, by setting the magicFile-Option.

The setOptions-Method of Zend_Transfer_Adapter_Abstract converts every setting to bool (Line 554 in recent trunk). This is right for 'ignoreNoFile' or 'useByteString', but not for magicFile.

$this->_files[$key]['options'][$name] = (boolean) $value;

Due to this, you can't use you own magicFile!


Fixed with r17075