ID: 36907 Updated by: [EMAIL PROTECTED] Reported By: olaf at 7val dot com -Status: Open +Status: Bogus Bug Type: Variables related Operating System: Linux PHP Version: 5.1.2 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2006-03-29 09:29:08] olaf at 7val dot com Description: ------------ When using input elements with names like "file[a][b][c]" the $_FILES Array is broken. With more than one input element it get even worse! Reproduce code: --------------- <html><head> <title>Test</title> </head> <body> <pre> <?PHP print_r($_FILES); ?> </pre> <form name="form1" enctype="multipart/form-data" method="post" ><input name="file[a][b][c]" size="25" accept="*/*" type="file"> <input type="submit" value="OK" name="submit"> </form> </body> </html> Expected result: ---------------- Array ( [file] => Array ( [a] => Array ( [b] => Array ( [c] => Array ( [name] => dsc00051.jpg [type] => image/jpeg [tmp_name] => /tmp/phpL3mhkD [error] => 0 [size] => 56484 ) ) ) ) ) Actual result: -------------- Array ( [file] => Array ( [name] => Array ( [a] => Array ( [b] => Array ( [c] => dsc00051.jpg ) ) ) [type] => Array ( [a] => Array ( [b] => Array ( [c] => image/jpeg ) ) ) [tmp_name] => Array ( [a] => Array ( [b] => Array ( [c] => /tmp/php2W1O7R ) ) ) [error] => Array ( [a] => Array ( [b] => Array ( [c] => 0 ) ) ) [size] => Array ( [a] => Array ( [b] => Array ( [c] => 56484 ) ) ) ) ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36907&edit=1