From 2a37a1284db9de3d3dcaf98ad3ca223ebcb1631d Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 6 Feb 2007 20:15:12 +0000 Subject: [PATCH] - Drop superflous stream close --- ext/phar/phar.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ext/phar/phar.c b/ext/phar/phar.c index c765423788..5dcf0d1e4b 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -2414,7 +2414,6 @@ int phar_flush(phar_archive_data *archive, char *user_stub, long len, char **err } else { archive->fp = php_stream_open_wrapper(archive->fname, "w+b", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, NULL); if (!archive->fp) { - php_stream_close(newfile); archive->fp = newfile; if (error) { spprintf(error, 0, "unable to open new phar \"%s\" for writing", archive->fname); -- 2.50.1