summaryrefslogtreecommitdiff
path: root/ext/zip/zip_stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zip/zip_stream.c')
-rw-r--r--ext/zip/zip_stream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/zip/zip_stream.c b/ext/zip/zip_stream.c
index 1f305509ea..1fda9c7eb8 100644
--- a/ext/zip/zip_stream.c
+++ b/ext/zip/zip_stream.c
@@ -140,6 +140,7 @@ php_stream *php_stream_zip_open(char *filename, char *path, char *mode STREAMS_D
if (!stream) {
return NULL;
} else {
+ stream->flags |= PHP_STREAM_FLAG_FCLOSE;
return stream;
}