From: Vagrant Cascadian Date: Tue, 25 Apr 2023 18:20:24 +0000 (-0700) Subject: Remove timestamps from "phar". X-Git-Tag: archive/raspbian/8.2.24-1+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b3abd12f9b49a9217f4254c867c00d28edfe891e;p=php8.2.git Remove timestamps from "phar". Thanks to Jelle van der Waa! https://gist.github.com/jelly/96847934239aac19c512c54ca65d6baa Gbp-Pq: Name 0046-Remove-timestamps-from-phar.patch --- diff --git a/ext/phar/phar.c b/ext/phar/phar.c index b774f22e..441a422b 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -3002,7 +3002,7 @@ int phar_flush(phar_archive_data *phar, char *user_stub, zend_long len, int conv 4: metadata-len +: metadata */ - mytime = time(NULL); + mytime = 0; phar_set_32(entry_buffer, entry->uncompressed_filesize); phar_set_32(entry_buffer+4, mytime); phar_set_32(entry_buffer+8, entry->compressed_filesize); diff --git a/ext/phar/util.c b/ext/phar/util.c index 352819bc..79743982 100644 --- a/ext/phar/util.c +++ b/ext/phar/util.c @@ -574,7 +574,7 @@ phar_entry_data *phar_get_or_create_entry_data(char *fname, size_t fname_len, ch phar_add_virtual_dirs(phar, path, path_len); etemp.is_modified = 1; - etemp.timestamp = time(0); + etemp.timestamp = 0; etemp.is_crc_checked = 1; etemp.phar = phar; etemp.filename = estrndup(path, path_len);