From 94ef7bc81e9f0dcfb29a97905c7e69178bc80355 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 15 Oct 2002 02:27:15 +0000 Subject: Don't use streams-level buffer on zlib streams. --- ext/zlib/zlib_fopen_wrapper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/zlib/zlib_fopen_wrapper.c') diff --git a/ext/zlib/zlib_fopen_wrapper.c b/ext/zlib/zlib_fopen_wrapper.c index b97f6a691b..b7c5454a37 100644 --- a/ext/zlib/zlib_fopen_wrapper.c +++ b/ext/zlib/zlib_fopen_wrapper.c @@ -111,8 +111,10 @@ php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, char *path, char *mod self->gz_file = gzdopen(fd, mode); if (self->gz_file) { stream = php_stream_alloc_rel(&php_stream_gzio_ops, self, 0, mode); - if (stream) + if (stream) { + stream->flags |= PHP_STREAM_FLAG_NO_BUFFER; return stream; + } gzclose(self->gz_file); } if (options & REPORT_ERRORS) -- cgit v1.2.1