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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Mar 29 11:01:29 2024 UTC