Skip to content

Commit 5ae1261

Browse files
authored
phar: Remove dead store (#20611)
This is overwritten later anyway by contents_len.
1 parent dcac024 commit 5ae1261

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/phar/phar_object.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,8 +1622,6 @@ static int phar_build(zend_object_iterator *iter, void *puser) /* {{{ */
16221622
data->internal_file->offset_abs = data->internal_file->offset = php_stream_tell(p_obj->fp);
16231623
data->fp = NULL;
16241624
php_stream_copy_to_stream_ex(fp, p_obj->fp, PHP_STREAM_COPY_ALL, &contents_len);
1625-
data->internal_file->uncompressed_filesize = data->internal_file->compressed_filesize =
1626-
php_stream_tell(p_obj->fp) - data->internal_file->offset;
16271625
if (php_stream_stat(fp, &ssb) != -1) {
16281626
data->internal_file->flags = ssb.sb.st_mode & PHAR_ENT_PERM_MASK ;
16291627
} else {

0 commit comments

Comments
 (0)