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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user