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