Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36893 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37709 invoked from network); 9 Apr 2008 06:57:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2008 06:57:56 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.82.235 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 66.249.82.235 wx-out-0506.google.com Received: from [66.249.82.235] ([66.249.82.235:32929] helo=wx-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/3B-04949-1F86CF74 for ; Wed, 09 Apr 2008 02:57:54 -0400 Received: by wx-out-0506.google.com with SMTP id s14so2744955wxc.26 for ; Tue, 08 Apr 2008 23:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=+ecNKCT5maggrMUjawk2Wt8pjeutFa0xbtiHI5cqGIs=; b=S0mlqkrGhCoTlfv2Fk07QPBaqMQA6xKwXYb2zI45pZGB8SZwAbel6wZuEm4WlraJ7I1XwIVdFJzMYI+5DzvAqreKK9Fc2X0r+43DcGg0/NLAq/7X9DEHWYzTYu6/yxCPX55d/wnhjIPnu8Z8Sgz1KqePzgH2xjA7uOj1cFcsFl4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LCR+sldNx1dyidMeQrdzvzG+Ak7YY/2XAUC69F+27TlYVdZxmTTV+sud/CuuEKy8ZFGiOyzLWu0PFX9sisRHhfFU5jOQfXZp+yeA9w0qU//X6C8DDICupJ/4z0OaDyFHRz2MSHe4+AL4Z40FOKhq2pjIjufZkFY9+KTxUf6XVPY= Received: by 10.140.180.13 with SMTP id c13mr2480307rvf.188.1207724270230; Tue, 08 Apr 2008 23:57:50 -0700 (PDT) Received: by 10.141.123.13 with HTTP; Tue, 8 Apr 2008 23:57:50 -0700 (PDT) Message-ID: Date: Wed, 9 Apr 2008 08:57:50 +0200 To: "Gregory Beaver" Cc: "Lars Strojny" , php-dev , "Steph Fox" , "Marcus Boerger" In-Reply-To: <47FC4A83.6080205@chiaraquartet.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47ED6D97.3030109@chiaraquartet.net> <1206788577.3621.15.camel@localhost> <47EEC989.5020603@chiaraquartet.net> <1206839984.3621.71.camel@localhost> <47FC4A83.6080205@chiaraquartet.net> Subject: Re: [PHP-DEV] practical phar considerations From: pierre.php@gmail.com ("Pierre Joye") Hi, On Wed, Apr 9, 2008 at 6:48 AM, Gregory Beaver 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