简体   繁体   中英

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?

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.

(PHP 5.2 was installed using the Zend Server Community Edition )

I searched and debugged for quite a while to find out that is was the max_input_vars directive. But, officially, there is no max_input_vars directive in PHP 5.2, according to this .

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM