[英]PHP 5.2, Ubuntu 10.04 Truncates External Input Variables
Why does PHP 5.2 on Ubuntu 10.04 LTS truncate long $_POST
(external input) values, like the max_input_vars
directive does in PHP 5.3? 为什么Ubuntu 10.04 LTS上的PHP 5.2会截断长的
$_POST
(外部输入)值,就像PHP 5.3中的max_input_vars
指令一样?
I am supporting an old e-commerce site (that is soon to be replaced) and after recently updating, the admin could no longer fully edit a product due to the having over 1000 input vars. 我正在支持一个旧的电子商务站点(即将被替换),并且在最近更新之后,由于输入变量超过1000个,管理员无法完全编辑产品。
(PHP 5.2 was installed using the Zend Server Community Edition ) (使用Zend Server Community Edition安装了PHP 5.2)
I searched and debugged for quite a while to find out that is was the max_input_vars
directive. 我搜索并调试了很
max_input_vars
,以发现这是max_input_vars
指令。 But, officially, there is no max_input_vars
directive in PHP 5.2, according to this . 但是,正式,没有
max_input_vars
在PHP 5.2指令,根据这个 。
I finally found that it was back-ported here . 我终于发现它在这里被反向移植了 。
Updating/adding the directive solved the problem. 更新/添加指令解决了该问题。
I hope this helps save someone else the headache of tracking this down. 我希望这可以帮助其他人免于追查此事的麻烦。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.