在5.3.9之前的版本中是否有像max_input_vars这样的限制? [英] Is there a limit like max_input_vars in versions before 5.3.9?

查看:237
本文介绍了在5.3.9之前的版本中是否有像max_input_vars这样的限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎有一个问题,旧的PHP版本和超过1000个输入字段在一种形式(见这个问题)。

It seems like there is a problem with older PHP versions and more than 1000 input fields in one form (see this question).

如果我运行一个旧的PHP版本的网络服务器, (<一个嵌套级别)中的表单元素的最大数量限制 自PHP 5.3.9起,www.php.net/manual/en/info.configuration.php#ini.max-input-varsrel =nofollow>指令max_input_vars ?

If I run a webserver with an older PHP version, is there a limit to the maximum number of form elements in (one nesting level) like it is controlled by the php.ini directive max_input_vars since PHP 5.3.9?

或者在旧版本中是否有无限制

Or is there no limit in older versions?

如果我在旧版本中设置此变量php.ini或.htaccess?

What happens if I set this variable anyway in older versions in php.ini or .htaccess?

我注意到,在我的服务器上运行PHP 5.3.3-7 + squeeze17也已经有指令 max_input_vars

I noticed, that on my server I run PHP 5.3.3-7+squeeze17 which also already has the directive max_input_vars.

旧版本的行为究竟是怎样的?

How exactly did older versions behave?

推荐答案

旧版本似乎有一个错误:

There seems to be a bug in older versions:

https://bugs.php.net/bug.php?id=65778

虽然您可以改变php.ini中的指令,并且改变在 phpinfo()中正确显示,它没有效果。

although you can alter the directive in php.ini and the change is shown correctly in phpinfo(), it has no effect.

行为:所有超过1000的变数都会被忽略。

Behaviour: all variables exceeding 1000 are ignored

3-7 + squeeze17 without suhosin module

tested in PHP 5.3.3-7+squeeze17 without suhosin module

一种可能的解决方法:使用javascript 压缩所有表单数据

A possible workaround: compact all form-data with javascript

这篇关于在5.3.9之前的版本中是否有像max_input_vars这样的限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆