1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Prevent double close() of the same file handle

This commit is contained in:
Dmitry Stogov
2007-04-26 12:52:58 +00:00
parent 6a6ae2f713
commit 69cfe50f74

View File

@@ -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;
}
}