Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a limit like max_input_vars in versions before 5.3.9?

It seems like there is a problem with older PHP versions and more than 1000 input fields in one form (see this question).

If I run a webserver with an older PHP version, is there a limit to the maximum number of form elements in (one nesting level) like it is controlled by the php.ini directive max_input_vars since PHP 5.3.9?

Or is there no limit in older versions?

What happens if I set this variable anyway in older versions in php.ini or .htaccess?

I noticed, that on my server I run PHP 5.3.3-7+squeeze17 which also already has the directive max_input_vars.

How exactly did older versions behave?

like image 517
rubo77 Avatar asked Sep 27 '13 04:09

rubo77


People also ask

How do you fix PHP setting max_input_vars must be at least 5000?

If you created your own PHP. ini file, then add the same code inside it: max_input_vars = 5000 Simply change the value to the recommended value. For example, 5000. Save your changes, and reboot your localhost or your server.

How do you increase max input variables?

Max Input Vars can easily get increased by using a line of code. PHP max input vars is simply the number of variables your server is set to handle in each function. If you receive the error 'Increase PHP Max Input Vars Limit' in WordPress, you need to add the code 'php_value max_input_vars 3000' to your .

What is max_input_vars in PHP INI?

max_input_vars is a setting managed through the PHP setting file (php. ini) which limits the number of inputs you can set when posting forms. The Jomres Micromanage and Standard tariff editing modes allow you to have precise control over the price of each and every day in your property, for each room type.

What is Max input vars?

The PHP Max Input Vars is the maximum number of variables your server can use for a single function. To work properly with a modern WordPress theme set this value to 3000. If the value is too low, you may experience problems such as lost data within your Theme Options and disappearing widgets.


1 Answers

It seems there is confusion:

http://www.flowstopper.org/2012/12/my-php-wtf-of-day-maxinputvars.html

Although the docs say: "Available since PHP 5.3.9."

http://php.net/manual/en/info.configuration.php

If I had to guess I would say there was always a limit, and it just got pulled out into the config/documentation in 5.3.9

like image 148
ddoor Avatar answered Oct 26 '22 14:10

ddoor