Possible Bug With $_FILES Global
| From: | Nathan Taylor | Date: | Thu, 18 Sep 2003 09:45:59 +0000 |
| Subject: | Possible Bug With $_FILES Global | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-162981@lists.php.net to get a copy of this message | ||
Hey Guys,
I discovered a possible bug with the $_FILES super global and thought I'd pass it along to you
guys to double check the accuracy of this being a bug before I reported it to the PHP team. So
here goes..
The default format for $_FILES is $_FILES['variable']['element'] which of course
works fine, following this format I would assume that the format for a variable inside an array
would be $_FILES['array']['variable']['element'] but on the contrary
it is in fact $_FILES['array']['element']['variable']. Somehow this
doesn't seem quite right to me. Granted, it still works just as well but it sort of breaks the
traditional naming structure for an array and really jumbles the logical flow of things. Do you
think this is worth reporting?
Regards,
Nathan Taylor