|
|
|
@ -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) |
|
|
|
|