Doc #66747 [Csd]: Contraddictory information about max_input_time
| From: | matteosistisette at gmail dot com | Date: | Sun, 23 Feb 2014 12:44:53 +0000 |
| Subject: | Doc #66747 [Csd]: Contraddictory information about max_input_time | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-11004@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66747&edit=1
ID: 66747
User updated by: matteosistisette at gmail dot com
Reported by: matteosistisette at gmail dot com
Summary: Contraddictory information about max_input_time
Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: all
PHP Version: Irrelevant
Assigned To: krakjoe
Block user comment: N
Private report: N
New Comment:
OMG Still unclear
"Timing begins at the moment PHP is invoked at the server and ends when execution begins."
It is still unclear by reading just this page whether or not that includes uploading time (which it
does), unless (A) one reads also http://php.net/manual/en/features.file-upload.common-pitfalls.php
or (B) one knows when PHP is invoked.
How does one know that PHP is invoked before all data is uploaded? I guess it is documented
somewhere, but then it should linked from http://www.php.net/info.configuration
Previous Comments:
------------------------------------------------------------------------
[2014-02-23 08:16:01] krakjoe@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.
------------------------------------------------------------------------
[2014-02-23 08:15:36] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=332879
Log: fix #66747 incorrect information
------------------------------------------------------------------------
[2014-02-20 14:05:53] matteosistisette at gmail dot com
I meant "hardly ambiguous"
(not being able to edit the report is SO frustrating)
------------------------------------------------------------------------
[2014-02-20 14:05:02] matteosistisette at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/info.configuration
---
"""
This sets the maximum time in seconds a script is allowed to parse input data, like POST and GET. It
is measured FROM THE MOMENT OF RECEIVING ALL DATA on the server to the start of script execution.
"""
---
However, from manual page: http://php.net/manual/en/features.file-upload.common-pitfalls.php
---
"""
Warning
max_input_time sets the maximum time, in seconds, the script is allowed to RECEIVE input; this
INCLUDES FILE UPLOADS. For large or multiple files, or users on SLOWER CONNECTIONS, the default of
60 seconds may be exceeded.
"""
(emphasys added)
Both statements are pretty clear and hardly unambiguous. Unfortunately each one implies the other is
wrong.
According to the first, the time it takes to upload the file clearly does NOT count as input time.
According to the second, it clearly does.
I don't know which one is true but definitely it can't be both, so please fix the one that
is wrong, so people won't need to do benchmarking to figure out:
http://stackoverflow.com/questions/3758377/php-configuration-max-execution-time-and-max-input-time/3758522#3758522
Test script:
---------------
.
Expected result:
----------------
-
Actual result:
--------------
.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66747&edit=1