-
-
Save jelly/96847934239aac19c512c54ca65d6baa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index 9b21eb7e2a..e8865f1b4b 100644 | |
--- a/ext/phar/phar.c | |
+++ b/ext/phar/phar.c | |
@@ -2954,7 +2954,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; //time(NULL); | |
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 53982b0f85..ef0e8e161b 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; //time(0); | |
etemp.is_crc_checked = 1; | |
etemp.phar = phar; | |
etemp.filename = estrndup(path, path_len); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment