From 9bd9e3a1f93a5b7bd624857e94eb6961797cfd90 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Wed, 1 Oct 2025 10:54:41 +0200 Subject: [PATCH] Fix build --- ext/phar/tar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/phar/tar.c b/ext/phar/tar.c index c6cc50ce8bf..63a9cdbf88f 100644 --- a/ext/phar/tar.c +++ b/ext/phar/tar.c @@ -1172,13 +1172,13 @@ nostub: zend_hash_apply_with_argument(&phar->manifest, phar_tar_writeheaders, (void *) &pass); if (error && *error) { - if (closeoldfile) { + if (must_close_old_file) { php_stream_close(oldfile); } /* on error in the hash iterator above, error is set */ php_stream_close(newfile); - return EOF; + return; } /* add signature for executable tars or tars explicitly set with setSignatureAlgorithm */