php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3627 Upload of large(20MB) files does not work
Submitted: 2000-02-25 18:32 UTC Modified: 2000-05-26 07:44 UTC
From: Martin_Tilsted at hotmail dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Beta 4 Patch Level 1 OS: Windows 98 sp1
Private report: No CVE-ID: None
 [2000-02-25 18:32 UTC] Martin_Tilsted at hotmail dot com
Hi i the prebuild php4 beta 4 patch level 1 and I
use this program handle upload:

<?
<FORM ENCTYPE="multipart/form-data" ACTION="RecieveFile.phtml" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="30000000">
Send this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File">
</FORM>
?>

When I upload small files(A few MB) anything work
like a dream, but if I try to upload a 20MB file
apache version 1.3.11 report this error:
 
[Sat Feb 26 00:11:50 2000] [error] [client 127.0.0.1] Premature end of script headers: c:/progs/php4/php.exe
[Sat Feb 26 00:11:50 2000] [error] [client 127.0.0.1] FATAL:  erealloc():  Unable to allocate 5884001 bytes

No matter which large file I try to upload I get this
error -(

I use explore 5 as browser, but I wrote a small java 
program to upload files and it get the same error, so
it is not a bug in the browser.

I have sat the max upload size and max memory size
to 64 mb in my php.ini.

Martin Tilsted.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-26 07:44 UTC] andi at cvs dot php dot net
This should be fixed now. If it isn't please reopen a bug report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 23:01:29 2024 UTC