Bug #16880: max_execution_time affects large uploads
From: zebz@hotmail.com
Operating system: Windows 98
PHP version: 4.2.0
PHP Bug Type: Scripting Engine problem
Bug description: max_execution_time affects large uploads
I recently upgraded PHP 4.1.2 to PHP 4.2 on my local Windows computer and
it works a lot better for large uploads (no more huge RAM usage, etc).
However I noticed that on this new version the max_execution_time setting
counts the upload time, which doesn't make sense since the PHP script is
called only after the file has been uploaded on the temp directory.
set_time_limit() doesn't solve the problem since the time expires right
before the script is called.
For example if I set max_execution_time to 10 seconds and upload a 50Mb
file, the file will take 20-30 seconds to be uploaded (remember, this is a
local upload) and at the end I'll get a "Maximum execution time of 10
seconds exceeded" error.
This would force anyone who wish to upload large files on a remote server
to set the max_execution_time setting to 10 *minutes* or more, which,
again, does not make sense.
--
Edit bug report at http://bugs.php.net/?id=16880&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16880&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16880&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16880&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16880&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16880&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16880&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16880&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16880&r=submittedtwice
Thread (16 messages)
- zebz at hotmail dot com
- zebz at hotmail dot comBug #16880 Updated: max_execution_time affects large uploads
- sniper@php.netBug #16880 Updated: max_execution_time affects large uploads
- zebz at hotmail dot comBug #16880 Updated: max_execution_time affects large uploads
- hjm at holos dot ptBug #16880 Updated: max_execution_time affects large uploads
- pfasser at shena dot it#16880 [Com]: max_execution_time affects large uploads
- sniper@php.net#16880 [Opn->Ctl]: max_execution_time affects large uploads
- pbaum at wi dot rr dot com#16880 [Com]: max_execution_time affects large uploads
- webmaster at tsn dot dk#16880 [Com]: max_execution_time affects large uploads
- sniper@php.net#16880 [Ctl->Fbk]: max_execution_time affects large uploads
- sniper@php.net#16880 [Fbk->Ctl]: max_execution_time affects large uploads
- iliaa@php.net#16880 [Ctl->Csd]: max_execution_time affects large uploads
- zebz at hotmail dot com#16880 [Com]: max_execution_time affects large uploads
- iliaa@php.net#16880 [Csd]: max_execution_time affects large uploads
- m dot ford at lmu dot ac dot uk#16880 [Com]: max_execution_time affects large uploads
- elfugitivo at lycos dot com#16880 [Com]: max_execution_time affects large uploads