PHP max_input_vars results in data loss for commits

Source: Internet
Author: User
A colleague to help solve the problem: Post 1020 data, the results show only 250.

The decision could be a post setup problem for PHP, and the result is that there is no problem with the post setting in php.ini.

The request parameter is complete through php://input, which is a problem when loading the $_post global variable.

I thought it was easy to solve the problem and found the reason for one hours. Later view PHP This part of the source code to see this line:

if (++count > PG (max_input_vars)) {

Php_error_docref (NULL tsrmls_cc, e_warning, "Input variables exceeded%ld. To increase the limit change max_input_vars in php.ini. ", PG (Max_input_vars));

Return

}

It suddenly occurred to me that php5.3.10 added a configuration command max_input_vars when resolving a hash conflict attack. Increase the value of this instruction in the php.ini.

In fact, debugging when you open the PHP error report level can also see that there are error prompts.

Around a big circle.

  • 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.