php.net |  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
 [2010-12-21 21:07 UTC] pekka at gmx dot de
Description:
------------
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:
---------------
N/A

Expected result:
----------------
N/A

Actual result:
--------------
N/A

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-21 21:53 UTC] cataphract@php.net
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] vrana@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=308191
Log: Better explain max_input_time (doc bug #53590)
 [2011-02-10 14:48 UTC] vrana@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: vrana
 [2011-02-10 14:48 UTC] vrana@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC