Doc #53590 [Opn]: Exact behaviour of max_input_time not described in manual

From: Date: Tue, 21 Dec 2010 20:53:23 +0000
Subject: Doc #53590 [Opn]: Exact behaviour of max_input_time not described in manual
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5709@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53590&edit=1 ID: 53590 Updated by: cataphract@php.net Reported by: pekka at gmx dot de Summary: Exact behaviour of max_input_time not described in manual Status: Open Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N Private report: N New Comment: 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". Previous Comments: ------------------------------------------------------------------------ [2010-12-21 21:07:05] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53590&edit=1

« previous php.doc.bugs (#5709) next »