php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #35757 max_input_time discrepency
Submitted: 2005-12-21 06:27 UTC Modified: 2006-01-13 15:30 UTC
From: daniel at netbreeze dot com dot au Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Ubuntu Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: daniel at netbreeze dot com dot au
New email:
PHP Version: OS:

 

 [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.. 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-13 15:30 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.

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.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Jun 19 18:00:01 2026 UTC