From:             tachi dot koichi at gmail dot com
Operating system: Win32
PHP version:      5.3.23
Package:          Scripting Engine problem
Bug Type:         Bug
Bug description:Posted array will disappear

Description:
------------
------------------
Steps to reproduce
------------------
Run the code below, and then press the "submit" button.


------------------
Results of expect
------------------
I hope that "count($_POST['test'])" is "10000".However, the return value of
the 
function was "0".
Variable "i" to this problem reproduce is "334" or over.


Test script:
---------------
Please submit button.
<?=ini_get('post_max_size')?><br />
1456669==<?=$_SERVER['CONTENT_LENGTH']?><br />
10000==<?=count($_POST['test'])?><br />

<form method="POST" action="" >
<?php
//333OK 334NG
for ($i=0; $i < 10000; $i++) {

    ?>
    <input name="test[<?=$i?>]" value="<?=md5($i)?>" type="hidden" />
    <input name="test2[<?=$i?>]" value="<?=md5($i)?>" type="hidden" />
    <input name="test3[<?=$i?>]" value="<?=md5($i)?>" type="hidden" />
    <?php
}

?>
    <input type="submit" />
</form>

Expected result:
----------------
count($_POST['test'])
-> 10000

Actual result:
--------------
count($_POST['test'])
-> 0

-- 
Edit bug report at https://bugs.php.net/bug.php?id=64451&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64451&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64451&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64451&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64451&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64451&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64451&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64451&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64451&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64451&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64451&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64451&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64451&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64451&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64451&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64451&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64451&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64451&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64451&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64451&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64451&r=mysqlcfg

Reply via email to