php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49945 Array in multipart/form-data
Submitted: 2009-10-21 15:16 UTC Modified: 2010-06-20 23:54 UTC
Votes:36
Avg. Score:4.0 ± 1.2
Reproduced:21 of 24 (87.5%)
Same Version:7 (33.3%)
Same OS:7 (33.3%)
From: marielyne at acanac dot net Assigned:
Status: Wont fix Package: Scripting Engine problem
PHP Version: 6SVN-2009-10-21 (snap) OS: Windows 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: marielyne at acanac dot net
New email:
PHP Version: OS:

 

 [2009-10-21 15:16 UTC] marielyne at acanac dot net
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 ) )

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-20 23:54 UTC] felipe@php.net
-Status: Open +Status: Wont fix
 [2010-06-20 23:54 UTC] felipe@php.net
Old trunk related.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 18:02:40 2024 UTC