PHP 4.0 Bug #3627: Upload of large(20MB) files does not work

From: Date: Fri, 25 Feb 2000 23:32:21 +0000
Subject: PHP 4.0 Bug #3627: Upload of large(20MB) files does not work
Groups: php.dev 
Request: Send a blank email to php-dev+get-16020@lists.php.net to get a copy of this message
From: Martin_Tilsted@hotmail.com Operating system: Windows 98 sp1 PHP version: 4.0 Beta 4 Patch Level 1 PHP Bug Type: Misbehaving function Bug description: Upload of large(20MB) files does not work 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.

« previous php.dev (#16020) next »