CakeFest 2024: The Official CakePHP Conference

zip_entry_compressedsize

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.0.0)

zip_entry_compressedsize检索目录项压缩过后的大小

警告

本函数已自 PHP 8.0.0 起被废弃。强烈建议不要依赖本函数。

说明

zip_entry_compressedsize(resource $zip_entry): int|false

返回指定目录项压缩过后的大小。

参数

zip_entry

由函数zip_read() 返回的目录项。

返回值

压缩后的大小, 或者在失败时返回 false

更新日志

版本 说明
8.0.0 弃用此函数,取而代之的是对象 API,请参阅 ZipArchive::statIndex()

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top