ID: 16713 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Scripting Engine problem Operating System: Windows 98 PHP Version: 4.1.2 New Comment:
This is fixed in PHP 4.2.0. (release is on Monday, 22th April). You can try the release candidate from here: http://www.php.net/~derick/ Previous Comments: ------------------------------------------------------------------------ [2002-04-20 11:33:27] [EMAIL PROTECTED] I use the default installation of PHPTriad (PHP 4.1.2 run as a CGI module on Apache 1.3.X). I increased the following variables on php.ini in an attempt to make large uploads work: upload_max_filesize: 32M post_max_size: 32M memory_limit: 64M max_execution_time: 3000 I use a standard upload form (with MAX_FILE_SIZE correctly set) and the .php file where the data are posted is a simple "print_r($_FILES)" to test if it works. However, everytime I upload a file over 5Mb, I get a "500 internal server error" after a relatively short time. The larger the file is, the longer it takes for the error to appear so I assume the problems occurs once PHP is called. Looking at the Apache log, I see the following: Premature end of script headers: c:/apache/php/php.exe FATAL: erealloc(): Unable to allocate 5872001 bytes So it means the large file makes the Apache session crash. I've been trying to make this work for over two weeks but files over 5Mb never work. Thanks ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16713&edit=1
