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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Sat Nov 23 04:01:28 2024 UTC