|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #72304 Support opendir in archive wrapper
Submitted: 2016-05-31 15:39 UTC Modified: 2021-05-12 13:07 UTC
From: flip101 at gmail dot com Assigned:
Status: Open Package: Zip Related
PHP Version: 5.6.22 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
21 - 17 = ?
Subscribe to this entry?

 [2016-05-31 15:39 UTC] flip101 at gmail dot com
Would it be possible to implement functions like opendir in the archive stream wrapper so that they are compatible with DirectoryIterator? This would be helpful in creating the same interface for working with filesystems and archives. Related issue:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-08 04:03 UTC]
Short answer: libzip doesn't actually export any kind of opendir/readdir mechanism for us to wrap into the streams layer.

Long answer: I might be able to coerce the entry enumeration API to emulate opendir/readdir, but it's going to be suboptimal.

Appendix: The actual zip:// implementation is... not very good, and I'm going to spend some time cleaning it up before I actually try address feature requests on it.
 [2021-05-12 13:07 UTC]
-Package: *Compression related +Package: Zip Related
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Sep 23 15:01:24 2023 UTC