Re: suggestion SplFileInfo
| From: | Pierre | Date: | Sun, 04 Mar 2007 12:46:40 +0000 |
| Subject: | Re: suggestion SplFileInfo | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-28217@lists.php.net to get a copy of this message | ||
On 3/3/07, Marcus Boerger <helly@php.net> wrote:
Hello Arnold, I added glob directory stream support. Now you can do two things: $d1 = new DirectoryIterator("glob://mydir/*"); $d2 = new DirectoryIterator("mydir/*", DirectoryIterator::USE_GLOB); count() stuff will follow.I'm not sure it is a good idea to add glob:// stream support. What does it have to do with custom streams? Will we add pcre:// too? DirectoryIteratorPattern/Glob($pattern) make much more sense to me. I did not test it but how does it work when used with other protocols? like: ftp://some/path/? It may be more useful to add streams support to our glob functions. But it can bring more troubles than expected. --Pierre