Bug #64451 [Nab]: Posted array will disappear
| From: | ta_chi at nyc dot odn dot ne dot jp | Date: | Tue, 19 Mar 2013 04:30:06 +0000 |
| Subject: | Bug #64451 [Nab]: Posted array will disappear | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-177870@lists.php.net to get a copy of this message | ||
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] rasmus@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