Edit report at https://bugs.php.net/bug.php?id=64451&edit=1
ID: 64451 Updated by: ras...@php.net Reported by: tachi dot koichi at gmail dot com Summary: Posted array will disappear -Status: Open +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: 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. Previous Comments: ------------------------------------------------------------------------ [2013-03-19 03:07:08] tachi dot koichi at gmail dot com 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