Re: [PATCH] imap_savebody()

From: Date: Mon, 26 Sep 2005 15:54:40 +0000
Subject: Re: [PATCH] imap_savebody()
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-19173@lists.php.net to get a copy of this message
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. Okay, take two:
char buf[GETS_FETCH_SIZE]; while (size > 0) { in toread = (size > GETS_FETCH_SIZE) ? GETS_FETCH_SIZE : size); if (!f(stream, toread, buf)) break; php_stream_write_stringl(IMAPG(gets_stream), buf, toread); size -= toread; } return NULL;

« previous php.internals (#19173) next »