]> granicus.if.org Git - php/commitdiff
add PHP_STREAM_FLAG_FCLOSE to zip streams
authorAntony Dovgal <tony2001@php.net>
Wed, 23 Jul 2008 09:09:02 +0000 (09:09 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 23 Jul 2008 09:09:02 +0000 (09:09 +0000)
ext/zip/zip_stream.c

index 1f305509ea26bf54c50540f17da6cf3cad743c74..1fda9c7eb87054e30266d28110e6b736f0feb673 100644 (file)
@@ -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;
        }