In php. ini, what are the restrictions of max_input_nesting_level and max_input_vars?

Source: Internet
Author: User
My website has only one variable, similar to index. php? Aa & amp; bb, no index. php? A [a] aa & amp; a [B] AB cannot exceed 2. However, after testing, no error is reported only when it is set to the following: {code ...} first, I thought it should be 1, but only 2... my website has only one variable, similar to/index. php? A = a & B = B, NO/index. php? If a [a] = aa & a [B] = AB, the number cannot exceed 2.

However, no error is reported only when it is set as follows:

Max_input_nesting_level = 2

First, I thought it should be = 1, but only = 2 won't make an error;

Max_input_vars = 36

This is even more strange. I don't have so many parameters. Why is it 36.

I tried the lower limit from 0.

In addition, do you think it is necessary to set a larger limit to prevent incorrect input paths?

Reply content:

My website only has one variable, like/index. php? A = a & B = B, NO/index. php? If a [a] = aa & a [B] = AB, the number cannot exceed 2.

However, no error is reported only when it is set as follows:

Max_input_nesting_level = 2

First, I thought it should be = 1, but only = 2 won't make an error;

Max_input_vars = 36

This is even more strange. I don't have so many parameters. Why is it 36.

I tried the lower limit from 0.

In addition, do you think it is necessary to set a larger limit to prevent incorrect input paths?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.