ZF-4248: Zend_File_Transfer_Adapter_Abstract::setOptions() doesn't overwrite options

Issue Type: Bug Created: 2008-09-11T03:12:51.000+0000 Last Updated: 2008-09-12T01:40:19.000+0000 Status: Resolved Fix version(s): - 1.6.1 (15/Sep/08)

Reporter: Ulrich Berkmüller (thetiger2k) Assignee: Thomas Weidner (thomas) Tags: - Zend_File_Transfer

Related issues: Attachments:


bug containing revision: 11362

You'll still get errors on uploading files with Zend_Form_Element_File although the field is not required. The cause of the problem is, that the line 162 in Zend_Form_Element_File.php $adapter->setOptions(array('ignoreNoFile' => true)); does not take effect.

Solution: (Zend_File_Transfer_Adapter_Abstract class on line 476)

old: $this->_options += $options;

fixed: $this->_options = $options + $this->_options;


Posted by Thomas Weidner (thomas) on 2008-09-11T23:32:33.000+0000

Some new features have been added. Mentioned behaviour (and codelines) can not be found.

Posted by Thomas Weidner (thomas) on 2008-09-11T23:32:57.000+0000

Unable to reproduce with actual release.

Posted by Ulrich Berkmüller (thetiger2k) on 2008-09-12T01:35:59.000+0000

yes, the feature of revision 11364 ( - added options check to prevent illegal options) fixed the bug automatically.

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.