CakeFest 2024: The Official CakePHP Conference

zip_entry_compressionmethod

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

zip_entry_compressionmethodディレクトリエントリの圧縮方法を取得する

警告

この関数は PHP 8.0.0 で 非推奨になります。この関数に頼らないことを強く推奨します。

説明

zip_entry_compressionmethod(resource $zip_entry): string|false

zip_entryにより指定されたディレクトリエントリの 圧縮方法を返します。

パラメータ

zip_entry

zip_read()により返されたディレクトリのエントリ

戻り値

圧縮方法を返します。 失敗した場合に false を返します

変更履歴

バージョン 説明
8.0.0 この関数は非推奨になりました。オブジェクト指向のAPIを使うのが望ましいです。 ZipArchive::statIndex() を参照ください。

参考

  • zip_open() - Zip ファイルアーカイブをオープンする
  • zip_read() - Zip ファイルアーカイブの中の次のエントリを読み込む

add a note

User Contributed Notes

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