- PHP 手册
- 函数参考
- 压缩与归档扩展
- Phar
- What makes a phar a phar and not a tar or a zip?
Zip-based phars
Archives based on the zip file format support several features built into
the zip file format. Per-file and whole-archive metadata is stored in
the zip file comment and zip archive comment as a serialized string. Pre-existing
zip comments will be successfully read as a string. Per-file compression
read/write is supported with zlib DEFLATE compression, and read access is supported
with bzip2 compression. There is no limit on the number of files
within a zip-based phar archive. Empty directories are stored in the zip archive
as files with a trailing slash like my/directory/
User Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/phar.fileformat.zip.php