|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-03-19 03:18 UTC] rasmus@php.net
[2013-03-19 03:18 UTC] rasmus@php.net
-Status: Open
+Status: Not a bug
[2013-03-19 04:30 UTC] ta_chi at nyc dot odn dot ne dot jp
[2013-03-19 04:30 UTC] ta_chi at nyc dot odn dot ne dot jp
-: tachi dot koichi at gmail dot com
+: ta_chi at nyc dot odn dot ne dot jp
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 11:00:01 2025 UTC |
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