Doc #65778 [Nab]: wrong information about introduction of max_input_vars directive
| From: | ubuntu at spacetrace dot org | Date: | Sat, 28 Sep 2013 10:24:48 +0000 |
| Subject: | Doc #65778 [Nab]: wrong information about introduction of max_input_vars directive | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10327@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65778&edit=1
ID: 65778
User updated by: ubuntu at spacetrace dot org
Reported by: ubuntu at spacetrace dot org
Summary: wrong information about introduction of
max_input_vars directive
Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
Operating System: debian
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
I committed the bug to debian:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=724817
Previous Comments:
------------------------------------------------------------------------
[2013-09-28 09:44:06] ubuntu at spacetrace dot org
So I would have to commit a bug in the debian bugtracking system?
------------------------------------------------------------------------
[2013-09-28 08:46:39] rasmus@php.net
That is because your distribution backported it from PHP 5.3.9. We can't
possibly document every patched PHP out there. We document the versions we made
the changes in. If you are running a modified version of what we released you
need to be aware of what modifications have been made yourself.
In your case you should be looking at:
http://ftp-master.metadata.debian.org/changelogs//main/p/php5/php5_5.3.3-
7+squeeze17_changelog
------------------------------------------------------------------------
[2013-09-28 07:32:37] ubuntu at spacetrace dot org
although the value somehow exists and works if you select a value below 1000:
if I change the value for max_input_vars to 900 and run the test script above, I get:
"901 num request variables"
------------------------------------------------------------------------
[2013-09-28 05:51:35] ubuntu at spacetrace dot org
tested in PHP 5.3.3-7+squeeze17 without suhosin module
------------------------------------------------------------------------
[2013-09-28 05:42:33] ubuntu at spacetrace dot org
Description:
------------
---
From manual page: http://www.php.net/info.configuration
---
It sais max_input_vars is available since PHP 5.3.9.
But I run PHP 5.3.3-7+squeeze17 on my debian server which also already has the directive
max_input_vars.
I can change the value in php.ini and it is displayed correctry changed in phpinfo().
Please add information about the behaviour with older versions
see http://stackoverflow.com/questions/19042734/is-there-a-limit-like-max-input-vars-in-versions-before-5-3-9
Test script:
---------------
<?php
if(!empty($_REQUEST)) echo sizeof($_REQUEST)." num request variables";
else {
?><form method="post"><?
for($i=0;$i<1100;$i++) echo '<input type="hidden"
value="v'.$i.'" name="v'.$i.'">';
?><input type="submit">
</form>
<?
}
Expected result:
----------------
after hitting the submit button it should say:
"1100 num request variables"
Actual result:
--------------
still "1000 num request variables"
although phpinfo() sais: max_input_vars is set to 100000
see
http://r.z11.de/paste/max_input_vars.php
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65778&edit=1