@TODO add this to the PHP manual
PHP has two resource types related to the PHP Zip Extension:
- Zip Directory
- Zip Entry
Both are not a "stream" resource (if tested with stream_get_meta_data
).
The function zip_open
returns - if successful - a resource of type "Zip Directory".
It represents the listing of entries (filenames) in a zip-file.
The function zip_read
returns - if successful - a resource of type "Zip Entry".
It represents an entry (filename) in a zip-file represented by a resource of type "Zip Directory".