mirror of
https://github.com/php/php-src.git
synced 2025-01-22 11:44:09 +08:00
Don't use streams-level buffer on zlib streams.
This commit is contained in:
parent
bf51192d67
commit
94ef7bc81e
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user