#49945 [NEW]: Array in multipart/form-data
| From: | marielyne at acanac dot net | Date: | Wed, 21 Oct 2009 15:16:38 +0000 |
| Subject: | #49945 [NEW]: Array in multipart/form-data | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-143761@lists.php.net to get a copy of this message | ||
From: marielyne at acanac dot net
Operating system: Windows 7
PHP version: 6SVN-2009-10-21 (snap)
PHP Bug Type: Scripting Engine problem
Bug description: Array in multipart/form-data
Description:
------------
$_POST gets shrunk to 1 element
Reproduce code:
---------------
<form method="post" enctype="multipart/form-data">
<input type="text" name="test[]" value="1" />
<input type="text" name="test[]" value="2" />
<input type="text" name="test[]" value="3" />
<input type="submit" />
</form>
<?php
print_r($_POST);
?>
Expected result:
----------------
5.3.0 and 5.2.11 print
Array ( [test] => Array ( [0] => 1 [1] => 2 [2] => 3 ) )
Actual result:
--------------
Array ( [test] => Array ( [0] => 3 ) )
--
Edit bug report at http://bugs.php.net/?id=49945&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49945&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49945&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49945&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49945&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49945&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49945&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49945&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49945&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49945&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49945&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49945&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49945&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49945&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49945&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49945&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49945&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49945&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49945&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49945&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49945&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49945&r=mysqlcfg