什么是max_input_time设置的最大价值?

什么是max_input_time设置的最大价值?

问题描述:

似乎的max_execution_time 0 ,但 memory_limit的 1

有关 max_input_time设置 0 1 还是两者兼而有之?

For max_input_time is it 0 or -1 or both?

绝对最大值的限制键入C:

The absolute maximum value is the limit of the long type in C:

long max_input_time; member in struct:_php_core_globals 

请参阅:http://lxr.php.net/search?q=max_input_time&defs=&refs=&path=&hist=&project=PHP_5_4

有效最大值为 2147483647 ,保持互操作性。它可能是更上的特定平台或implementaion,但是这是最常见的,32位的最大值

The effective maximum value is 2147483647, to maintain interoperability. It may be more on a specific platform or implementaion, but this is the most common, 32bit max.

你也可以看到在源的几个景点(即如果(PG(max_input_time设置)!= -1)),值 1 被视为等同于最大值。 0 将被视为零。

As you can also see at a few spots in the source (ie if (PG(max_input_time) != -1)), the value -1 is treated as equivalent to maximum. 0 would be treated as zero.

文档

  • Runtime configuration - http://www.php.net/manual/en/info.configuration.php#ini.max-input-time
  • PHP source code browser search for "max_execution_time" - http://lxr.php.net/search?q=max_input_time&defs=&refs=&path=&hist=&project=PHP_5_4