|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53590 Exact behaviour of max_input_time not described in manual
Submitted: 2010-12-21 21:07 UTC Modified: 2011-02-10 14:48 UTC
From: pekka at gmx dot de Assigned: vrana (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: pekka at gmx dot de
New email:
PHP Version: OS:


 [2010-12-21 21:07 UTC] pekka at gmx dot de
The PHP documentation has this to say about the max_input_time directive:

"This sets the maximum time in seconds a script is allowed to parse input data, 
like POST, GET and file uploads."

it is difficult to tell from this what time span the setting refers to: The time 
that the whole request may take (including the time the client needs to upload a 
possible attached file) or the time after the request has been received, that is 
needed to parse the received data into temporary files, POST variables and such.

I was unable to find any solid information on this anywhere else, and am not 
proficient enough to understand it from the PHP source code's zend_set_timeout(). 
I would like to request that this be clarified in the documentation. Thank you. 

Test script:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-21 21:53 UTC]
From my read of the source code, this option seems near useless. The time starts counting *after* the input data is read and before the script is executed, so it refers only to parsing of the input data (by then saved in memory) into $_POST/$_GET/other superglobals. However, most of those superglobals are also built just-in-time (unless PHP is configured otherwise), so that parsing is actually deferred until script execution time, when the variable's requested.

Also, with multipart requests reading and parsing the data are done in one step (in the reading step), so that occurs before the timeout starts counting. The documentation is wrong when it mentions "file uploads".
 [2011-02-10 14:48 UTC]
Automatic comment from SVN on behalf of vrana
Log: Better explain max_input_time (doc bug #53590)
 [2011-02-10 14:48 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: vrana
 [2011-02-10 14:48 UTC]
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Tue Sep 25 09:01:24 2018 UTC