[cvs] commit: framework/MIME/MIME Contents.php
Michael M Slusarz
slusarz at curecanti.org
Fri May 27 22:56:33 PDT 2005
slusarz 2005-05-27 22:56:31 PDT
Modified files:
MIME/MIME Contents.php
Log:
Bug: 1410
It turns out that PHP 5's clone() doesn't seem to work the way I expect it to.
Namely, the outermost part of the object is cloned but inner variables in the
object may remain linked outside of the cloned object. To me, clone means to
create a new copy of the object that is completely independent of the old
object. Seems like the PHP folk agree with me since there are multiple bugs
on this issue - See, e.g.:
http://bugs.php.net/bug.php?id=27268
So, for now, hack around this issue using serialize/unserialize combo which
does create a truly independent object.
This should fix the issue with seeing un-encoded characters when
replying/forwarding to mesages (that's the only place where i was seeing this
weirdness).
Revision Changes Path
1.146 +9 -2 framework/MIME/MIME/Contents.php
Chora Links:
http://cvs.horde.org/diff.php/framework/MIME/MIME/Contents.php?r1=1.145&r2=1.146&ty=u
More information about the cvs
mailing list