Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: 1.7.7
-
Component/s: Zend_File_Transfer
-
Labels:None
Description
if (!$index = array_search($key, $this->_files[$file]['validators'])){
==> if ($index ===0) the test is skipped and the validator is not removed
=> better use :
if ( ($index = array_search($key, $this->_files[$file]['validators'])) === false ) {
That's correct behaviour.
It is not allowed to delete the Upload validator as it's essential for file uploads. And the upload validator is always attached as first validator for file elements.