mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
phar: Remove unused min_timestamp field (#20617)
This commit is contained in:
@@ -1149,15 +1149,9 @@ static zend_result phar_parse_pharfile(php_stream *fp, char *fname, size_t fname
|
||||
PHAR_GET_32(buffer, entry.uncompressed_filesize);
|
||||
PHAR_GET_32(buffer, entry.timestamp);
|
||||
|
||||
if (offset == halt_offset + manifest_len + 4) {
|
||||
mydata->min_timestamp = entry.timestamp;
|
||||
if (offset == halt_offset + manifest_len + 4
|
||||
|| mydata->max_timestamp < entry.timestamp) {
|
||||
mydata->max_timestamp = entry.timestamp;
|
||||
} else {
|
||||
if (mydata->min_timestamp > entry.timestamp) {
|
||||
mydata->min_timestamp = entry.timestamp;
|
||||
} else if (mydata->max_timestamp < entry.timestamp) {
|
||||
mydata->max_timestamp = entry.timestamp;
|
||||
}
|
||||
}
|
||||
|
||||
PHAR_GET_32(buffer, entry.compressed_filesize);
|
||||
|
||||
@@ -258,7 +258,6 @@ struct _phar_archive_data {
|
||||
/* hash of mounted directory paths */
|
||||
HashTable mounted_dirs;
|
||||
uint32_t flags;
|
||||
uint32_t min_timestamp;
|
||||
uint32_t max_timestamp;
|
||||
int refcount;
|
||||
php_stream *fp;
|
||||
|
||||
Reference in New Issue
Block a user