For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > January 2006 > #35757 [Opn->Csd]: max_input_time discrepency









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #35757 [Opn->Csd]: max_input_time discrepency
vrana@php.net

2006-01-13, 6:57 pm

ID: 35757
Updated by: vrana@php.net
Reported By: daniel at netbreeze dot com dot au
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Ubuntu Linux
PHP Version: Irrelevant
New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2005-12-21 06:27:58] 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..



------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=35757&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com