Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phar timestamp is 32-bit #14141

Open
nielsdos opened this issue May 5, 2024 · 0 comments
Open

Phar timestamp is 32-bit #14141

nielsdos opened this issue May 5, 2024 · 0 comments

Comments

@nielsdos
Copy link
Member

nielsdos commented May 5, 2024

Description

From the definition of the entry info:

typedef struct _phar_entry_info {
	/* first bytes are exactly as in file */
	uint32_t                 uncompressed_filesize;
	uint32_t                 timestamp;

We can see that the timestamp is 32-bit... This will give problems in the near future and we should audit Phar's code such that this issue is gone. This might also imply changes to the file format.

PHP Version

All

Operating System

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant