From: na24am at gmail dot com Operating system: MacOS X Lion PHP version: 5.4.8 Package: Variables related Bug Type: Bug Bug description:max_input_vars doesn't filter variables when mbstring.encoding_translation = On
Description: ------------ max_input_vars doesn't filter variables when mbstring.encoding_translation = On -- mbstring.encoding_translation = On max_input_vars = 2 Test script: --------------- <html> <body> <form action="" method="post"> <input type="hidden" name="value01" value="test01"> <input type="hidden" name="value02" value="test02"> <input type="hidden" name="value03" value="test03"> <input type="hidden" name="value04" value="test04"> <input type="submit" value="submit"> </form> <?php var_dump($_POST); ?> </body> </html> Expected result: ---------------- Warning: Unknown: Input variables exceeded 2. To increase the limit change max_input_vars in php.ini. in Unknown on line 0 array(2) { ["value01"]=> string(6) "test01" ["value02"]=> string(6) "test02" } Actual result: -------------- array(4) { ["value01"]=> string(6) "test01" ["value02"]=> string(6) "test02" ["value03"]=> string(6) "test03" ["value04"]=> string(6) "test04" } -- Edit bug report at https://bugs.php.net/bug.php?id=63447&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63447&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63447&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63447&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63447&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63447&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63447&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63447&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63447&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63447&r=support Expected behavior: https://bugs.php.net/fix.php?id=63447&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63447&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63447&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63447&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63447&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63447&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63447&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63447&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63447&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63447&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63447&r=mysqlcfg