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

Reply via email to