From:             [EMAIL PROTECTED]
Operating system: Windows 2000 SP3
PHP version:      4.2.3
PHP Bug Type:     PHP options/info functions
Bug description:  set_time_limit doesn't work on large file uploads

Test code (test.php) running under Windows 2000 with PHP running as a CGI
binary under IIS (not in safe mode) as obtained and installed under the
"Downloads" section of the PHP website (the zip package, not the installer
version):

<?php
set_time_limit(0);
ignore_user_abort(true);
phpinfo();
?>

Running the script directly from your browser displays the phpinfo() page
with a local max_execution_time set to 0 (with a global value of 30).

Now create an HTML form page that accepts a large file for upload
(modifying php.ini's post_max_size and upload_max_filesize as necessary)
and which submits to this script.  If the file is large enough so that the
time it takes to upload to the server is > max_execution_time, PHP returns
the following error to the client:

Fatal error: Maximum execution time of 30 seconds exceeded in
D:\InetPub\test.php on line 2

-- 
Edit bug report at http://bugs.php.net/?id=20097&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20097&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20097&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20097&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20097&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20097&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20097&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20097&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20097&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20097&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20097&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20097&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20097&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20097&r=isapi

Reply via email to