summaryrefslogtreecommitdiff
path: root/ext/zlib
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-04-26 12:52:58 +0000
committerDmitry Stogov <dmitry@php.net>2007-04-26 12:52:58 +0000
commit69cfe50f74a3625f6ba7cb48a393a3e23344a3de (patch)
tree429179cc2ed499b7890cf5528e9191fcc81a0eea /ext/zlib
parent6a6ae2f713fa7cd189da4ad483df7a3671ccc032 (diff)
downloadphp-git-69cfe50f74a3625f6ba7cb48a393a3e23344a3de.tar.gz
Prevent double close() of the same file handle
Diffstat (limited to 'ext/zlib')
-rw-r--r--ext/zlib/zlib_fopen_wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zlib/zlib_fopen_wrapper.c b/ext/zlib/zlib_fopen_wrapper.c
index 64bee4928e..5e45edc31f 100644
--- a/ext/zlib/zlib_fopen_wrapper.c
+++ b/ext/zlib/zlib_fopen_wrapper.c
@@ -76,7 +76,7 @@ static int php_gziop_close(php_stream *stream, int close_handle TSRMLS_DC)
self->gz_file = NULL;
}
if (self->stream) {
- php_stream_close(self->stream);
+ php_stream_free(self->stream, PHP_STREAM_FREE_CLOSE | PHP_STREAM_FREE_PRESERVE_HANDLE);
self->stream = NULL;
}
}