Doc #65659 [NEW]: Wrong description of max_input_vars config var

From: Date: Thu, 12 Sep 2013 13:39:25 +0000
Subject: Doc #65659 [NEW]: Wrong description of max_input_vars config var
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10254@lists.php.net to get a copy of this message
From: gabri dot ns at gmail dot com Operating system: Irrelevant PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Wrong description of max_input_vars config var Description: ------------ From http://www.php.net/manual/en/info.configuration.php#ini.max-input-vars it stated that the limitation is only on each nested level of multidimensional array. But actually, it limit on the root level of variabel. Easy speaking, it count appearance of '&' in input. this script should work since each level only contain 900 var, but it stopped after 1000th appearance of '&' it may be connected to Bug #60728 Test script: --------------- $a = array(); for ($i = 0; $i < 900; $i++) { if ($i != 899) $a['asd'.$i] = "$i"; else for ($j = 0; $j < 900; $j++) $a['asd'.$i]['qwe'.$j] = "$i - $j"; } $a = http_build_query($a); parse_str($a,$b); $b = http_build_query($b); echo count(explode('&',$a))."\n"; echo count(explode('&',$b))."\n"; Expected result: ---------------- 1799 1799 Actual result: -------------- Warning: parse_str(): Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in var://_POST/script on line 9 1799 1000 -- Edit bug report at https://bugs.php.net/bug.php?id=65659&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65659&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65659&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65659&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65659&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65659&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65659&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65659&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65659&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65659&r=support Expected behavior: https://bugs.php.net/fix.php?id=65659&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65659&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65659&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65659&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65659&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65659&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65659&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65659&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65659&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65659&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65659&r=mysqlcfg

« previous php.doc.bugs (#10254) next »