php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3482 Max Upload Filesize not working.
Submitted: 2000-02-14 20:57 UTC Modified: 2002-10-01 11:41 UTC
From: dph at nw dot verio dot net Assigned:
Status: Wont fix Package: Misbehaving function
PHP Version: 3.0.14 OS: FreeBSD 2.2.8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dph at nw dot verio dot net
New email:
PHP Version: OS:

 

 [2000-02-14 20:57 UTC] dph at nw dot verio dot net
Attempting to upload a file larger than 25mb with PHP 3.0.14 fails with
this error in the logs:

FATAL:  emalloc():  Unable to allocate 26445703 bytes

I have verified with phpinfo() that php.ini is being read and is reporting
a max file size of 500 mb!  

In re-compiling Apache with 3.0.10 and 3.0.5 has not affected a problem.

The only thing that has remained constant is an upgrade from Apache 1.3.3 to 1.3.9.

http://www.expresscopy.com/phpinfo.php3

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 11:41 UTC] hholzgra@php.net
We are sorry, but can not support PHP 3 related problems anymore.  Momentum is
gathering for PHP 5, and we think supporting PHP 3 will lead to a waste of
resources which we want to put into getting PHP 5 ready. Ofcourse PHP 4 will
will continue to be supported for the forseeable future.

up to php 4.1.2 an uploaded file has to fit into ram for a short while before being written back to disk. so upload size is not only limited by max_upload_size but also by memory_limit, ulimit settings for the webserver process and by the total amount of ram and swapspace...

beginning with php 4.2 uploaded files are streamed through to the filesystem without being completely buffered in memory, so uploads are now limited by max_upload_size only
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 04:01:31 2024 UTC