On 3/3/07, Marcus Boerger <[EMAIL PROTECTED]> 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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php