From: Vagrant Cascadian Date: Tue, 25 Apr 2023 18:20:24 +0000 (-0700) Subject: Remove timestamps from "phar". X-Git-Tag: archive/raspbian/8.4.16-1_deb13u1+rpi1^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1f9c0dc153a69e9279c19af0536139fd56d91d60;p=php8.4.git Remove timestamps from "phar". Thanks to Jelle van der Waa! https://gist.github.com/jelly/96847934239aac19c512c54ca65d6baa Gbp-Pq: Name 0041-Remove-timestamps-from-phar.patch --- diff --git a/ext/phar/phar.c b/ext/phar/phar.c index 3a2c226e..875911f6 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -2936,7 +2936,7 @@ int phar_flush_ex(phar_archive_data *phar, zend_string *user_stub, bool is_defau 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 9bcd8e40..d5806074 100644 --- a/ext/phar/util.c +++ b/ext/phar/util.c @@ -701,7 +701,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);