Req #72304 [Com]: Support opendir in archive wrapper

From: Date: Wed, 04 Oct 2023 11:35:59 +0000
Subject: Req #72304 [Com]: Support opendir in archive wrapper
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245495@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72304&edit=1

 ID:                 72304
 Comment by:         hammadseo597 at gmail dot cm
 Reported by:        flip101 at gmail dot com
 Summary:            Support opendir in archive wrapper
 Status:             Open
 Type:               Feature/Change Request
 Package:            Zip Related
 PHP Version:        5.6.22
 Block user comment: N
 Private report:     N

 New Comment:

Yes it is definitely possible to alter this php bug. I implemented this on my website
www.coinmasterfreespins.co.uk and it worked really well for me.


Previous Comments:
------------------------------------------------------------------------
[2016-06-08 04:03:10] pollita@php.net

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.

------------------------------------------------------------------------
[2016-05-31 15:39:25] flip101 at gmail dot com

Description:
------------
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: https://github.com/symfony/symfony/issues/18811



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=72304&edit=1


Thread (2 messages)

« previous php.bugs (#245495) next »