Don't use streams-level buffer on zlib streams.

This commit is contained in:
Wez Furlong 2002-10-15 02:27:15 +00:00
parent bf51192d67
commit 94ef7bc81e

View File

@ -111,8 +111,10 @@ php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, char *path, char *mod
self->gz_file = gzdopen(fd, mode); self->gz_file = gzdopen(fd, mode);
if (self->gz_file) { if (self->gz_file) {
stream = php_stream_alloc_rel(&php_stream_gzio_ops, self, 0, mode); 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; return stream;
}
gzclose(self->gz_file); gzclose(self->gz_file);
} }
if (options & REPORT_ERRORS) if (options & REPORT_ERRORS)