Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2001041

[PHP-DEV] PHP 4.0 Bug #10238 Updated: erealloc() function error From: hholzgra <email protected>
Date: 04/09/01

ID: 10238
Updated by: hholzgra
Reported By: csjang <email protected>
Old-Status: Open
Status: Analyzed
Old-Bug Type: Filesystem function related
Bug Type: Feature/Change Request
Assigned To:
Comments:

current implementation of file uploads
requires the uploaded form data including
the file data itself to be completly held
in memory for a short while

if your file gets to big it may exhaust
the available memory on your system

to prevent php from bailing out here you
should set a lower limit for upload_max_filesize
in PHP init and/or switch to an operating system
with better memory handling capabilities than
the still somehow DOS-based Win95/98 line

PS: moved to change request as there should be
a more clever way to deal with post data than
to stuff it all into main memory ... i think i
remember Rasmus talking about someone working on
this when we met in Brussels

Previous Comments:
---------------------------------------------------------------------------

[2001-04-09 02:41:58] csjang <email protected>
I found tht folloing error during file ( file size ablout 12 MB) uploading :

[Mon Apr 09 15:33:22 2001] [error] [client 127.0.0.1] Premature end of script headers: c:/php/php.exe
[Mon Apr 09 15:33:22 2001] [error] [client 127.0.0.1] FATAL: erealloc(): Unable to allocate 5876001 bytes

Maybe above error is some PHP memory error. I can't solve
this problem.

PLEASE HELP ME.

---------------------------------------------------------------------------

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10238&edit=2

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>