ZF-9546: Undefined index name when uploading files using Zend_File

Issue Type: Bug Created: 2010-03-26T06:30:46.000+0000 Last Updated: 2010-03-27T12:53:53.000+0000 Status: Resolved Fix version(s): - 1.10.3 (01/Apr/10)

Reporter: Uro? (upirna) Assignee: Thomas Weidner (thomas) Tags: - Zend_File_Transfer

Related issues: Attachments:


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);


    if (count($result) == 1) {
        return array_pop($result);

And it now it works.


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

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.