Hi, On Wed, Apr 9, 2008 at 6:48 AM, Gregory Beaver <[EMAIL PROTECTED]> wrote:
> For other examples, take a look at at > ext/zip. There is no support for opendir() in the stream wrapper of > ext/zip because it requires the kind of path grepping that pecl/phar > does. That's easy to add and will be available at some point, that was simply not needed and nobody ever requested this feature. Extract or add using a pattern is however much more useful. It is already partially supported. > > Yes, this shouldn't be allowed while > > $phar['foo/bar/baz'] = new DirectoryIterator(); could be allowed. > > I will simply add makeEmptyDir() a la zip, although it is too bad > ext/zip never thought to go with mkdir(). I thought about mkdir but it is a bad name as it implies a shell command. makeEmptyDir while being longer is self explaining. I also asked before choosing this name, as far as I remember nobody proposed mkdir either. Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php