From: knst at mail dot ru Operating system: PHP version: 4.3.7 PHP Bug Type: Scripting Engine problem Bug description: Incorrect parsing of POST/GET part of HTTP reqest
Description: ------------ I've got a problem while trying to process results of submitting such kind of a form : <form method=post > <input name=vname value="1"><BR> <input name=vname value="2"><BR> <input name=vname value="3"><BR> <input name=vname value="4"><BR> <input type=submit><BR> </form> PHP generates only one variable $vname with value 4 instead of array $vaname[] with 4 elements. It was impossible to change html of the form. So I had to parse data read from 'php://input'. Reproduce code: --------------- Submittion of <form method=post > <input name=vname value="1"><BR> <input name=vname value="2"><BR> <input name=vname value="3"><BR> <input name=vname value="4"><BR> <input type=submit><BR> </form> Expected result: ---------------- value of $vname is array( 0 => 1, 0 => 2, 0 => 3, 0 => 4) Actual result: -------------- value of $vname is 4 -- Edit bug report at http://bugs.php.net/?id=30006&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30006&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30006&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30006&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30006&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30006&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30006&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30006&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30006&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30006&r=support Expected behavior: http://bugs.php.net/fix.php?id=30006&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30006&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30006&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30006&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30006&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30006&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30006&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30006&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30006&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30006&r=mysqlcfg