1

Since PHP 5.3.9 there is the runtime configuration variable max_input_vars in php.ini that limits the amount how many input variables may be accepted by one form.

But what exactly happens if the limit is exceeded (in versions since 5.3.9)?

  1. Are the supernumerary variables ignored?
  2. Or are all variables discarded if the limit is exceeded?

How exactly is this handled? And if variables are discarded, which? And did the behaviour change in different versions?

(also related: Is there a limit like max_input_vars in versions before 5.3.9? )

Community
  • 1
  • 1
rubo77
  • 19,527
  • 31
  • 134
  • 226
  • possible duplicate of [Is there a limit like max\_input\_vars in versions before 5.3.9?](http://stackoverflow.com/questions/19042734/is-there-a-limit-like-max-input-vars-in-versions-before-5-3-9) –  Sep 27 '13 at 04:48
  • 1
    The answers to your questions are covered in the link you posted in your question. –  Sep 27 '13 at 04:48
  • not at all, here I ask about the difference in newer versions than 5.3.9, in the other questions the behaviour before the introduction of the new variable – rubo77 Sep 27 '13 at 04:51

1 Answers1

2

Any variable over the limit is discarded, so your total variables are truncated.

From the link: an E_WARNING is issued, and further input variables are truncated from the request

The order they are supplied are the order they get cut off.

ddoor
  • 5,819
  • 9
  • 34
  • 41