HEADER_ID
HEADER_ID = 0x756e : int
ASi Unix Extra Field: ====================.
The following is the layout of the ASi extra block for Unix. The local-header and central-header versions are identical. (Last Revision 19960916)
Value Size Description
(Unix3) 0x756e Short tag for this extra block type ("nu") TSize Short total data size for this block CRC Long CRC-32 of the remaining data Mode Short file permissions SizDev Long symlink'd size OR major/minor dev num UID Short user ID GID Short group ID (var.) variable symbolic link filename
Mode is the standard Unix st_mode field from struct stat, containing user/group/other permissions, setuid/setgid and symlink info, etc.
If Mode indicates that this file is a symbolic link, SizDev is the size of the file to which the link points. Otherwise, if the file is a device, SizDev contains the standard Unix st_rdev field from struct stat (includes the major and minor numbers of the device). SizDev is undefined in other cases.
If Mode indicates that the file is a symbolic link, the final field will be the name of the file to which the link points. The file- name length can be inferred from TSize.
[Note that TSize may incorrectly refer to the data size not counting the CRC; i.e., it may be four bytes too small.]
$mode : int
$uid : int
$gid : int
$link : string
unpackLocalFileData(string $buffer, \PhpZip\Model\ZipEntry|null $entry = null) : static
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\AsiExtraField
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 |