PHP zip_entry_close() — legacy ZIP API

zip_entry_close() closes the current ZIP entry. PHP deprecated this procedural function in 8.0. Use fclose on a stream returned by ZipArchive::getStream in new code.

A simple example

zip_entry_close()

  1. Start with One open archive member
  2. Do this Close just that member
  3. Result Entry stream closed
Finishing one entry allows the program to move on within the archive.

Use ZipArchive to read entries by name in modern PHP.

To run the examples, save bbminfo.zip beside your script and run it from that directory.