1
0
mirror of https://github.com/php/php-src.git synced 2026-03-31 04:32:19 +02:00

- Drop superflous stream close

This commit is contained in:
Marcus Boerger
2007-02-06 20:15:12 +00:00
parent 3a64f890cb
commit 2a37a1284d

View File

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