Skip to content

Commit 64d2a3f

Browse files
committed
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4: Fix build
2 parents fced2d8 + 9bd9e3a commit 64d2a3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/phar/tar.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,13 +1172,13 @@ void phar_tar_flush(phar_archive_data *phar, zend_string *user_stub, bool is_def
11721172
zend_hash_apply_with_argument(&phar->manifest, phar_tar_writeheaders, (void *) &pass);
11731173

11741174
if (error && *error) {
1175-
if (closeoldfile) {
1175+
if (must_close_old_file) {
11761176
php_stream_close(oldfile);
11771177
}
11781178

11791179
/* on error in the hash iterator above, error is set */
11801180
php_stream_close(newfile);
1181-
return EOF;
1181+
return;
11821182
}
11831183

11841184
/* add signature for executable tars or tars explicitly set with setSignatureAlgorithm */

0 commit comments

Comments
 (0)