From: Operating system: PHP version: 5.3.9 Package: *General Issues Bug Type: Bug Bug description:max_input_vars corrupt posted data
Description: ------------ When you post some data to the php script where are more variables than limit in max_input_vars the php script does not get any information that php don't put any of data to the system variables (for example $_REQUEST[]). There is only "PHP Warning" generated but the php script is still running without any problem with corrupted dataset from post. Solution will be to stop executing the script if max_input_vars is reached. Without stoping the script you are working with currupted dataset and you can make some data inconsistencies in your aplication without any knowledge. Test script: --------------- max_input_vars = 1 sending post: test.php?a=1&b=2&c=3 print_r($_REQUEST); Expected result: ---------------- Stop the script if max_input_vars is reached. Actual result: -------------- Array ( [a] => 1 ) -- Edit bug report at https://bugs.php.net/bug.php?id=60876&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60876&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60876&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60876&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60876&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60876&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60876&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60876&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60876&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60876&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60876&r=support Expected behavior: https://bugs.php.net/fix.php?id=60876&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60876&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60876&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60876&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60876&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60876&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60876&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60876&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60876&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60876&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60876&r=mysqlcfg