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

From: Date: Fri, 25 Feb 2000 23:35:20 +0000
Subject: Re: PHP 4.0 Bug #3627: Upload of large(20MB) files does not work
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-16021@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 When you upload files there needs to be enough RAM available to handle the copying from the browser to the hard drive, you do not have enough RAM to hand a 20 mb file, thus the error. This is not due to a PHP bug but rather due to a lack of memory available on your system, please close this bug. Sterling Hughes sterling@designmultimedia.com

« previous php.dev (#16021) next »