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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mikeb414 at earthlink dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sun Dec 22 11:01:30 2024 UTC