Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the max value of max_input_time?

Seems that max_execution_time is 0 but memory_limit is -1.

For max_input_time is it 0 or -1 or both?

like image 207
Anish Avatar asked Nov 05 '10 06:11

Anish


1 Answers

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

long max_input_time; member in struct:_php_core_globals 

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

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.

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.

Documentation

  • 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
like image 121
Chris Baker Avatar answered Oct 02 '22 11:10

Chris Baker