ZF-9546: Undefined index name when uploading files using Zend_File
Description
After update of PHP on version 5.2.12 adapter didn't work any more. I was searching for solution and found a solution. I changed function getFileName in class Zend_File_Transfer_Adapter_Abstract where I replaced:
if (count($result) == 1) {
return current($result);
}
to
if (count($result) == 1) {
return array_pop($result);
}
And it now it works.
Comments
Posted by Thomas Weidner (thomas) on 2010-03-26T08:38:45.000+0000
Your change breaks the component as it does then no longer return a string but an array.
Additionally getFileName() does not look at "name" => $value. So getFileName() is not able to throw such a failure.
You should give reproducable informations to us
Posted by Thomas Weidner (thomas) on 2010-03-27T12:53:49.000+0000
Closing as not reproducable. Feel free to reopen as soon as you have additional informations