HEADER_ID
HEADER_ID = 0x5855 : int
Info-ZIP Unix Extra Field (type 1): ==================================.
The following is the layout of the old Info-ZIP extra block for Unix. It has been replaced by the extended-timestamp extra block (0x5455) and the Unix type 2 extra block (0x7855). (Last Revision 19970118)
Local-header version:
Value Size Description
(Unix1) 0x5855 Short tag for this extra block type ("UX") TSize Short total data size for this block AcTime Long time of last access (UTC/GMT) ModTime Long time of last modification (UTC/GMT) UID Short Unix user ID (optional) GID Short Unix group ID (optional)
Central-header version:
Value Size Description
(Unix1) 0x5855 Short tag for this extra block type ("UX") TSize Short total data size for this block AcTime Long time of last access (GMT/UTC) ModTime Long time of last modification (GMT/UTC)
The file access and modification times are in standard Unix signed- long format, indicating the number of seconds since 1 January 1970 00:00:00. The times are relative to Coordinated Universal Time (UTC), also sometimes referred to as Greenwich Mean Time (GMT). To convert to local time, the software must know the local timezone offset from UTC/GMT. The modification time may be used by non-Unix systems to support inter-timezone freshening and updating of zip archives.
The local-header extra block may optionally contain UID and GID info for the file. The local-header TSize value is the only indication of this. Note that Unix UIDs and GIDs are usually specific to a particular machine, and they generally require root access to restore.
This extra field type is obsolete, but it has been in use since mid-1994. Therefore future archiving software should continue to support it.
$accessTime : int|null
$modifyTime : int|null
$uid : int|null
$gid : int|null
unpackLocalFileData(string $buffer, \PhpZip\Model\ZipEntry|null $entry = null) : \PhpZip\Model\Extra\Fields\OldUnixExtraField
Populate data from this array as if it was in local file data.
string | $buffer | the buffer to read data from |
\PhpZip\Model\ZipEntry|null | $entry |
unpackCentralDirData(string $buffer, \PhpZip\Model\ZipEntry|null $entry = null) : \PhpZip\Model\Extra\Fields\OldUnixExtraField
Populate data from this array as if it was in central directory data.
string | $buffer | the buffer to read data from |
\PhpZip\Model\ZipEntry|null | $entry |