Re: Horde_Imap_Client failed test with 5.5.21RC1 / 5.6.4RC1

Michael M Slusarz <[email protected]>
Newsgroups gmane.comp.horde.devel
Message-ID <20150114155526.Horde.tneYL8zi275wHGMDzX2bTA1@bigworm.curecanti.org>
Quoting Remi Collet <[email protected]>:

> Le 13/01/2015 11:02, Michael M Slusarz a écrit :
>> Quoting Remi Collet <[email protected]>:
>>
>>> Le 10/01/2015 07:52, Remi Collet a écrit :
>>>> Horde_Imap_Client start to fail with upcomming new PHP
>>>> version.
>>>
>>> First analysis:
>>>
>>> See http://news.php.net/php.internals/80363
>>> https://bugs.php.net/68532
>>>
>>> I try to fix the quote filter but doesn't seems really nice.
>>
>> http://github.com/horde/horde/commit/ae1adf9f1549f6bb826b541274949cfd0e77457e
>
> Nice
>>
> fix, thanks.
>
> Despite this is fixed, and needed (at least for 7.0) we don't know ye
> if we are going to revert this change in PHP 5.5/5.6
>
> Feel free to comment on the internals@ discussion about what you think.

I think the current (fixed) behavior is correct.

My implementation of the filter was actually wrong in that it assumed  
that the filter would only be called once with a single bucket.  From  
a practical standpoint, this didn't make a difference because strings  
that we need to quote, at least in Horde_Imap_Client, are so short (<  
50 characters) that the filter never saw more than 1 bucket in  
everyday usage.  But theoretically, if someone was using the filter to  
quote a long string, the previous  
Horde_Imap_Client_Data_Format_Filter_Quote would have been broken  
before my fix.

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.