php Post limited to 1000 variables(php Post 限制为 1000 个变量)
问题描述
我有一个大表单,我可以从 firebug 看到所有元素的值都被正确发送,但是当我打印_r($_POST) 时,只显示了 1000 个变量.我的 max_post_size 设置为 25M,所以我知道这不是问题,我在 php.ini 中搜索了诸如post"和max"之类的关键字,但没有找到任何内容.
I've got a large form and I can see from firebug that all of the elements' values are being sent properly, but when I print_r($_POST) there are only 1000 variables displayed. My max_post_size is set to 25M so I know that's not the issue and I searched through my php.ini for keywords like 'post' and 'max' and I didn't find anything.
1000 仅是我传递的元素的 1/4 左右,所以显然这对我来说是一个很大的问题,我非常感谢我能得到的任何帮助.
1000 is only about 1/4 of the elements that I'm passing so obviously this is a pretty big issue for me, I really appreciate any help I can get.
推荐答案
我明白你在这里做了什么.
I see what you did here.
max_input_vars, 1000
为了防止哈希碰撞攻击而引入:http://www.phpclasses.org/blog/post/171-PHP-Vulnerability-May-Halt-Millions-of-Servers.html但是在 5.3.9 失败了:http://www.phpclasses.org/blog/post/175-Another-Serious-Security-Bug-on-PHP-539.html所以如果有问题,你应该更新到 5.3.10+.
Introduced in order to prevent hash collision attack: http://www.phpclasses.org/blog/post/171-PHP-Vulnerability-May-Halt-Millions-of-Servers.html But failed in 5.3.9: http://www.phpclasses.org/blog/post/175-Another-Serious-Security-Bug-on-PHP-539.html So you should update to 5.3.10+ if that is problem.
这篇关于php Post 限制为 1000 个变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:php Post 限制为 1000 个变量


- Laravel 5:Model.php 中的 MassAssignmentException 2021-01-01
- PHP - if 语句中的倒序 2021-01-01
- 如何使用 Google API 在团队云端硬盘中创建文件夹? 2022-01-01
- 覆盖 Magento 社区模块控制器的问题 2022-01-01
- 如何从数据库中获取数据以在 laravel 中查看页面? 2022-01-01
- PHP foreach() 与数组中的数组? 2022-01-01
- openssl_digest vs hash vs hash_hmac?盐与盐的区别HMAC? 2022-01-01
- 如何在 Symfony2 中正确使用 webSockets 2021-01-01
- 使用 GD 和 libjpeg 支持编译 PHP 2022-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01