From: lakario at msn dot com Operating system: All PHP version: 4.3.3 PHP Bug Type: Unknown/Other Function Bug description: Problem with the Structure of $_FILES
Description: ------------ >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. Reproduce code: --------------- This is basically formality and really doesn't need to be hear at all, but here you go; a sample HTML form that will produce the error: <form action="blah" method="post"> <input type="file" name="array[file]"> <input type="submit" name="" value="Submit"> </form> Expected result: ---------------- The form ideally should send back the file contained within $_FILES as $_FILES['array']['file']['element']. Actual result: -------------- The form in fact sends back the file contained in $_FILES as $_FILES['array']['element']['file']. -- Edit bug report at http://bugs.php.net/?id=25589&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25589&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25589&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25589&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25589&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25589&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25589&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25589&r=support Expected behavior: http://bugs.php.net/fix.php?id=25589&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25589&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25589&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25589&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25589&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25589&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25589&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25589&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25589&r=float