ZF-5164: Zend_Form_Elment_File::getValues() should check if the element have been uploaded


If the file element is set as not required and in the case it haven't been uploaded, Zend_Form_Elment_File::getValues( )return the last directory name instead of null. On my debian box tmp is returned.


Possible fix :\

if (!$this->isRequired() && !$this->isUploaded()) {
     return null;


Fixed with r13042