Phar 매니페스트 파일 항목 정의

매니페스트의 각 파일에는 다음 정보가 포함되어 있습니다.

Phar 매니페스트 파일 항목

Size in bytes 설명
4 bytes Filename length in bytes
?? Filename (length specified in previous)
4 bytes Un-compressed file size in bytes
4 bytes Unix timestamp of file
4 bytes Compressed file size in bytes
4 bytes CRC32 checksum of un-compressed file contents
4 bytes Bit-mapped File-specific flags
4 bytes Serialized File Meta-data length (0 for none)
?? Serialized File Meta-data, stored in serialize() format

API 버전 1.1.1부터 빈 디렉토리는 my/directory/와 같이 슬래시가 있는 파일 이름으로 저장됩니다.

인식되는 파일별 비트맵 값은 다음과 같습니다.

비트맵 값이 인식됨

Value 설명
0x000001FF 이 비트는 파일의 특정 파일 권한을 정의하기 위해 예약되어 있습니다. 권한은 fstat()에 사용되며 추출 시 원하는 권한을 다시 생성하는 데 사용할 수 있습니다.
0x00001000 설정하면 이 파일은 zlib DEFLATE 압축으로 압축됩니다.
0x00002000 설정하면 이 파일은 bzip2 압축으로 압축됩니다.