[dev] [commits] Horde branch master updated. 10b3eb5f8f5f5baa2e9490b7d69316dfa38024f7
Michael M Slusarz
slusarz at horde.org
Mon Jun 27 15:54:42 UTC 2011
Quoting Jan Schneider <jan at horde.org>:
> commit 10b3eb5f8f5f5baa2e9490b7d69316dfa38024f7
> Author: Jan Schneider <jan at horde.org>
> Date: Sat Jun 25 22:45:53 2011 +0200
>
> Revert "Always make sure that $_contents is a resource before
> using it (Bug #10252)."
>
> This reverts commit b2d086839532ea785a20e7bd1a57d114e6cd2658.
>
> This breaks message viewing in IMP, though all tests pass just fine. No
> idea what IMP is doing with mime parts that breaks this.
>
> framework/Mime/lib/Horde/Mime/Part.php | 36
> ++++++-------------------------
> framework/Mime/package.xml | 4 +-
> 2 files changed, 9 insertions(+), 31 deletions(-)
>
> http://git.horde.org/horde-git/-/commit/10b3eb5f8f5f5baa2e9490b7d69316dfa38024f7
This would be an incorrect fix anyway, because $_contents must always
be a stream resource (outside of init/serialization methods). That's
what the internal documentation says.
This needs to be properly fixed by instead implementing the
Serializable interface, (instead of __sleep()) which will not alter
the contents of the current object.
michael
___________________________________
Michael Slusarz [slusarz at horde.org]
More information about the dev
mailing list