Pierre Joye wrote: > 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, I agree. >> > 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.
I'm fine with makeEmptyDir(), I was just thinking out loud :) This wasn't intended to be a referendum on ext/zip, just to be clear. Greg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
