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

Issue Type: Bug Created: 2009-07-24T01:22:46.000+0000 Last Updated: 2009-07-28T13:31:04.000+0000 Status: Resolved Fix version(s): - 1.9.0 (31/Jul/09)

Reporter: Matthias Krauser (matthias.krauser) Assignee: Thomas Weidner (thomas) Tags: - Zend_File_Transfer

Related issues: - ZF-7407



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!


Posted by Thomas Weidner (thomas) on 2009-07-25T10:50:14.000+0000

Fixed with r17075

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.