Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Why does PHP 5.2 on Ubuntu 10.04 LTS truncate large number $_POST (external input) vars, like the max_input_vars directive 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)

share|improve this question
1  
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. –  talyric Feb 1 '13 at 22:41
    
Could you post that as an answer instead of a comment, then accept the answer? Thanks! –  Andrew B Feb 2 '13 at 6:31
    
Posted as an answer. (I did not understand when I posted the question that I would have to wait 8 hours to post the answer, so I put the answer as a comment, so no one would waste time trying to figure it out.) –  talyric Feb 2 '13 at 20:52

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.