From: jal at ambitonline dot com Operating system: Windows 2000 PHP version: 4.3.3 PHP Bug Type: Unknown/Other Function Bug description: Nested arrays in POST not processed correctly
Description: ------------ Nested arrays in a HTML form are not parsed out correctly. Reproduce code: --------------- strtest1.php: <form action="strtest2.php" method="post"> <input name="myObject[myVar]" size="40"><br> <input name="myObject[myArray[0]]" size="40"><br> <input name="myObject[myArray[1]]" size="40"><br> <input type="submit" value="go"> </form> strtest2.php: <?php print_r($_POST); ?> Expected result: ---------------- Array ( [myObject] => Array ( [myVar] => text1 myArray => Array([0] => text2 [1] => text3 ) ) ) Actual result: -------------- Array ( [myObject] => Array ( [myVar] => text1 [myArray[0] => text2 [myArray[1] => text3 ) ) -- Edit bug report at http://bugs.php.net/?id=25262&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25262&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25262&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25262&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25262&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25262&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25262&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25262&r=support Expected behavior: http://bugs.php.net/fix.php?id=25262&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25262&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25262&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25262&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25262&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25262&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25262&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25262&r=gnused