Commit 5ae1261c6f8 for php.net
commit 5ae1261c6f8ff2738ab0e9262da0d17cf440e3e7
Author: Niels Dossche <7771979+ndossche@users.noreply.github.com>
Date: Sat Nov 29 02:21:33 2025 -0800
phar: Remove dead store (#20611)
This is overwritten later anyway by contents_len.
diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c
index acd9aa0cff6..11a0dd17a4e 100644
--- a/ext/phar/phar_object.c
+++ b/ext/phar/phar_object.c
@@ -1622,8 +1622,6 @@ static int phar_build(zend_object_iterator *iter, void *puser) /* {{{ */
data->internal_file->offset_abs = data->internal_file->offset = php_stream_tell(p_obj->fp);
data->fp = NULL;
php_stream_copy_to_stream_ex(fp, p_obj->fp, PHP_STREAM_COPY_ALL, &contents_len);
- data->internal_file->uncompressed_filesize = data->internal_file->compressed_filesize =
- php_stream_tell(p_obj->fp) - data->internal_file->offset;
if (php_stream_stat(fp, &ssb) != -1) {
data->internal_file->flags = ssb.sb.st_mode & PHAR_ENT_PERM_MASK ;
} else {