I couldn't find this in the docs, but does:
max_input_time = -1
means there is no limit?
I find it odd that max_execution_time = 0
is forever.
But what does -1
mean for max_input_time
?
A quick look into the php.ini
file will show you:
; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
; Note: This directive is hardcoded to -1 for the CLI SAPI
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://php.net/max-input-time
max_input_time=60
So as you already guessed correct:
; Default Value: -1 (Unlimited)
//^^^^^^^^^^^^^^
You can see the php.ini
files for production and development on github:
php.ini
file for productionphp.ini
file for development Actually the documentation says it different:
max_input_time integer
This sets the maximum time in seconds a script is allowed to parse input data, like POST and GET. Timing begins at the moment PHP is invoked at the server and ends when execution begins. The default setting is -1, which means that max_execution_time is used instead. Set to 0 to allow unlimited time.
The doc is here: http://php.net/manual/en/info.configuration.php#ini.max-input-time
So, to my understanding the comment provided in php.ini is wrong.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With