Re: [PATCH] imap_savebody()
| From: | Michael Wallner | Date: | Mon, 26 Sep 2005 15:10:38 +0000 |
| Subject: | Re: [PATCH] imap_savebody() | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-19171@lists.php.net to get a copy of this message | ||
Hi Sara Golemon, you wrote:
> Here's how I'd write this block, it assumed that f returns the number of
> bytes actually read, but according to the proto for readfn_t it *should*
> do that.
Well, unfortunately not. It seems that net_get_buffer() in mail.c is
used as standard readfn_t which only returns NIL/T i.e. 0/1.
But the patch's implementation is by no means mandatory, it's just
about getting the data out with enabled memory_limit, so I actually
wouldn't mind if it would get implemented in a totally different way ;)
Regards,
--
Michael - < mike(@)php.net >