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

Description

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;

Comments

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

Unable to reproduce with actual release.

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