]> granicus.if.org Git - php/commitdiff
- Drop superflous stream close
authorMarcus Boerger <helly@php.net>
Tue, 6 Feb 2007 20:15:12 +0000 (20:15 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 6 Feb 2007 20:15:12 +0000 (20:15 +0000)
ext/phar/phar.c

index c765423788ffc0ac75b97c9c25ea9781dfae3f12..5dcf0d1e4b6ffb9ecdf3dbb88c151a6c97a846ab 100644 (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);