Re: [commits] Horde branch master updated. 9ac03eb9986f297753bbd15fd4191f0fa3f44c5b

Michael M Slusarz <[email protected]>
Newsgroups gmane.comp.horde.devel
Message-ID <20150122131740.Horde.Qt1gU07CZ-xe2097p8YaqQ2@bigworm.curecanti.org>
Quoting Michael M Slusarz <[email protected]>:

> Quoting Michael J Rubinsky <[email protected]>:
>
>> Quoting Michael M Slusarz <[email protected]>:
>>
>>
>>> commit dfd1041a4c146d8754686cd9530e9fe2a44054aa
>>> Author: Michael M Slusarz <[email protected]>
>>> Date:   Thu Jan 22 02:45:18 2015 -0700
>>>
>>>   Fix tests
>>>
>>>   Can't use serialized objects, since there is no guarantee (like here)
>>>   that the internals won't change.
>>>
>>> framework/ActiveSync/test/Horde/ActiveSync/ImapAdapterTest.php     
>>> |    7 ++--
>>> .../ActiveSync/test/Horde/ActiveSync/MessageBodyDataTest.php       
>>> |    8 ++++-
>>> 2 files changed, 11 insertions(+), 4 deletions(-)
>>>
>>> http://github.com/horde/horde/commit/dfd1041a4c146d8754686cd9530e9fe2a44054aa
>>
>>
>> These are Horde_Imap_Client_Fetch_Results objects. Since these  
>> objects contain internal Horde_Mime_Part and Horde_Mime_Header  
>> objects, perhaps these objects (or Horde_Imap_Client_Data_Fetch  
>> objects) should be marked not serialize-able.
>
> That class is serializable.  (Thought I had unit tests for this but  
> I didn't.  Just created and this claim has been verified).

Spoke too soon.

Data_Fetch objects won't be correctly unserialized if they contain  
stream data, since this data is not converted to a string  
representation on serialize() - this data is lost.

michael

___________________________________
Michael Slusarz [[email protected]]

-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.