mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Remove unused fields from phar_entry_data() (#14144)
These fields are only ever written to, but never read.
This commit is contained in:
@@ -458,9 +458,6 @@ typedef struct _phar_entry_data {
|
||||
zend_off_t position;
|
||||
/* for copies of the phar fp, defines where 0 is */
|
||||
zend_off_t zero;
|
||||
uint32_t for_write:1;
|
||||
uint32_t is_zip:1;
|
||||
uint32_t is_tar:1;
|
||||
phar_entry_info *internal_file;
|
||||
} phar_entry_data;
|
||||
|
||||
|
||||
@@ -438,10 +438,7 @@ really_get_entry:
|
||||
(*ret)->position = 0;
|
||||
(*ret)->fp = NULL;
|
||||
(*ret)->phar = phar;
|
||||
(*ret)->for_write = for_write;
|
||||
(*ret)->internal_file = entry;
|
||||
(*ret)->is_zip = entry->is_zip;
|
||||
(*ret)->is_tar = entry->is_tar;
|
||||
|
||||
if (!phar->is_persistent) {
|
||||
++(entry->phar->refcount);
|
||||
@@ -486,10 +483,7 @@ really_get_entry:
|
||||
*ret = (phar_entry_data *) emalloc(sizeof(phar_entry_data));
|
||||
(*ret)->position = 0;
|
||||
(*ret)->phar = phar;
|
||||
(*ret)->for_write = for_write;
|
||||
(*ret)->internal_file = entry;
|
||||
(*ret)->is_zip = entry->is_zip;
|
||||
(*ret)->is_tar = entry->is_tar;
|
||||
(*ret)->fp = phar_get_efp(entry, 1);
|
||||
if (entry->link) {
|
||||
phar_entry_info *link = phar_get_link_source(entry);
|
||||
@@ -616,9 +610,6 @@ phar_entry_data *phar_get_or_create_entry_data(char *fname, size_t fname_len, ch
|
||||
ret->phar = phar;
|
||||
ret->fp = entry->fp;
|
||||
ret->position = ret->zero = 0;
|
||||
ret->for_write = 1;
|
||||
ret->is_zip = entry->is_zip;
|
||||
ret->is_tar = entry->is_tar;
|
||||
ret->internal_file = entry;
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user