You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Phar truncates entries of 4 GiB or more without error/warning #25053
Adding a file of 4 GiB or more to a phar, tar or zip archive succeeds without any warning, but the archive stores the size and file truncated to 2^32 bytes.
I would expect it to either raise an exception (unsupported feature) or produce an archive the 4 GiB + 1 file and its contents.
The same happens with Phar::ZIP and with the phar format, and with buildFromDirectory() instead of addFile(). In every case the entry ends up 1 byte long.
The cause is that phar_entry_info stores the sizes as uint32_t:
Activity