[imp] Big attachment problem

Eric Rostetter eric.rostetter at physics.utexas.edu
Thu Feb 6 16:56:22 PST 2003


Quoting Myke Place <mp at xmission.com>:

> Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to
> allocate 7006319 bytes) in
> /var/www/horde/lib/MIME/Part.php on line 195
> 
> Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to
> allocate 140 bytes) in
> Unknown on line 0

I've seen issues like this when I was using PHP 4.1.2 installations.
I believe, but can not prove, it is a bug in some 4.1.2 installations.
I can not remember if the problem was in RedHat's RPMS, or the RPMS from
rpms.arvin.dk, or both.

Basically, I had a machine which people upload files to (not Horde related).
They often upload up to about 100 MB files.  I had set the limit to be
about 100MB, and it worked fine with php 4.0.6.  Well, when the security
notes about 4.0.6 came out, I upgraded to 4.1.2, and I ran into a problem
like above.  So I ended up having to set memory to about 250 MB to get a
100MB file to upload.  Not sure why, etc.  But I do note that the machine
only had 128 MB of memory, and I had no issues with setting the php memory
limit higher than physical memory, and I didn't notice any obvious swapping.
Well, when I upgraded to another php (probably 4.2, but not sure) I was able
to lower the memory setting back down to 100MB and still upload files.

So the moral is: There *may* be a bug in some php 4.1.2 versions out there.
Then again, my case could have been isolated.

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the imp mailing list