From: Marcus Boerger Date: Fri, 7 Oct 2005 07:37:37 +0000 (+0000) Subject: - C vs. C++ fix X-Git-Tag: RELEASE_0_9_1~208 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8217f844889c0ef45139a89130a96668f0abd425;p=php - C vs. C++ fix # I do too much C++ and too much languages anyway, right now actively: # C, C++, Java, PHP, Peral --- diff --git a/main/streams/memory.c b/main/streams/memory.c index 0342c5b923..af050665b1 100644 --- a/main/streams/memory.c +++ b/main/streams/memory.c @@ -308,12 +308,13 @@ static size_t php_stream_temp_write(php_stream *stream, const char *buf, size_t static size_t php_stream_temp_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) { php_stream_temp_data *ts; + size_t got; assert(stream != NULL); ts = stream->abstract; assert(ts != NULL); - size_t got = php_stream_read(ts->innerstream, buf, count); + got = php_stream_read(ts->innerstream, buf, count); if (!got) { stream->eof |= ts->innerstream->eof;