6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/27/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#1163] IMP Memory usage
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ . .. . ..__. [__)|__|| |\ || | [__)| ||___| \||__|
Comment
> Yes. My patch was incomplete. The error message is because a constant > is passed as argument to a method which defines that argument must be > passed by reference. I did see one of the issues was corrected, > though. this return line: > > > > return ''.$large_string; > > > > is gone now. > > The fatal error you're mentioning can be easily fixed like this: > > $i->setContents("string constant'); > > should be changed to something like: > > $i->setContents($dummy = 'string constant'); > > > > Moving on. > > After reinstaling the framework with the patch I had posted applied > I've got the error about memory again. I will try to look into it. > > Anyway: the patch I posted is not correct from a formal point of > view: ::setContent() is a setter, so the argument shoud not be passed > by reference. But we know we are calling this with a 10Mb string. The > solution may be not be my patch (I don't like either, I was making > changes trying to find problems like the one corrected, end up > finding part of the problem comes from CORRECT programing). :( > > Don't know how should it be fixed. But I think it is a problem that > should be addressed. Until it is fixed somehow I will continue to > patch the sources (altough I will try to find what I've lost with my > overwriting of the changes when reinstaling the framework, I will > post once I have). > > I have 300k clients with a mean of 3 email accounts each. > Dimensioning for that kind of numbers makes this kind of problems > important :) > > > > Thanks for the time you took checking this out, sorry for not posting > a complete patch. > > > > Juan
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers