|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-12-21 06:27 UTC] daniel at netbreeze dot com dot au
Description: ------------ max_input_time in the php.ini file has a comment next to it: Maximum amount of time each script may spend _parsing_ request data However, the online manual has this to say: This sets the maximum time in seconds a script is allowed to _receive_ input data, like POST, GET and file uploads. The problem I have is with the 'parsing' and 'receive' words in the above descriptions. Does php fully receive get/post before it starts parsing? If so then is it parsing or receiving that this option sets? This is mainly causing me problems with regards to file uploads. Thanks.. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Jun 19 18:00:01 2026 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. Timer is initialized in php_request_startup() and terminated in php_execute_script(). However, I'm not sure, if php_request_startup() is called before recieving the data or after. Following script succeeds with max_input_time = 1: <?php $fp = fsockopen("localhost", 80); fwrite($fp, "POST / HTTP/1.1\r\n"); fwrite($fp, "Host: localhost\r\n"); fwrite($fp, "Connection: close\r\n"); fwrite($fp, "Content-Type: application/x-www-form-urlencoded\r\n"); fwrite($fp, "Content-Length: 3\r\n"); fwrite($fp, "\r\n"); fwrite($fp, "a="); sleep(3); fwrite($fp, "b"); fpassthru($fp); fclose($fp); ?> So max_input_time probably limits the time to parse.