php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #24780 max_execution_time interferes with large POST file uploads
Submitted: 2003-07-23 17:07 UTC Modified: 2003-07-23 22:16 UTC
From: mikeb414 at earthlink dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.3.1 OS: Windows XP
Private report: No CVE-ID: None
 [2003-07-23 17:07 UTC] mikeb414 at earthlink dot net
Description:
------------
SHORT VERSION:
I suggest that either setting the time limit to 0 in php.ini results in no time limit, or that the time it takes for an HTTP POST file upload to be transferred not be counted in script execution time.

I have seen others with similar bugs, such as bug #18579 which was marked cannot reproduce, but it still seems to be an issue.

LONG VERSION:
I have found it impossible to defeat the max_execution_time limit with scripts that process uploaded files. I was told that setting max_execution_time to 0 in php.ini would allow scripts to run for an unlimited time, but in practice, when the file has completed uploading php just gives me a Fatal error: Maximum execution time of 0 seconds exceeded.

I can't use functions like set_time_limit or ini_set either because php waits for the file to complete uploading before processing the first line of the script. Therefore I request a change such as one of the suggestions above be considered.

Reproduce code:
---------------
N/A: Feature request

Expected result:
----------------
N/A: Feature request

Actual result:
--------------
N/A: Feature request

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-23 22:16 UTC] sniper@php.net
Already done: See "max_input_time" directive in php.ini.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 08 01:01:30 2024 UTC