Edit report at https://bugs.php.net/bug.php?id=64451&edit=1

 ID:                 64451
 User updated by:    ta_chi at nyc dot odn dot ne dot jp
 Reported by:        ta_chi at nyc dot odn dot ne dot jp
 Summary:            Posted array will disappear
 Status:             Not a bug
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Win32
 PHP Version:        5.3.23
 Block user comment: N
 Private report:     N

 New Comment:

Oh, thank you.
Setting the max_input_vars, worked as expected!

Sorry for the hassle.


Previous Comments:
------------------------------------------------------------------------
[2013-03-19 03:18:25] ras...@php.net

You are hitting max_input_vars - increase it in your php.ini if you want to 
support that many. This was restricted for security reasons to avoid hash-
collision DoS attacks.

------------------------------------------------------------------------
[2013-03-19 03:07:08] ta_chi at nyc dot odn dot ne dot jp

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 this bug report at https://bugs.php.net/bug.php?id=64451&edit=1

Reply via email to