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 > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php