Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36901 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9804 invoked from network); 9 Apr 2008 12:44:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2008 12:44:48 -0000 Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 38.99.98.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:36341] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/A8-04949-D3ABCF74 for ; Wed, 09 Apr 2008 08:44:47 -0400 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id 793A291E0DD; Wed, 9 Apr 2008 05:44:44 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-4-101.neb.res.rr.com [76.84.4.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id 9BC8C91E0DB; Wed, 9 Apr 2008 05:44:43 -0700 (MST) Message-ID: <47FCBA3D.3080506@chiaraquartet.net> Date: Wed, 09 Apr 2008 07:44:45 -0500 User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: Pierre Joye CC: Lars Strojny , php-dev , Steph Fox , Marcus Boerger References: <47ED6D97.3030109@chiaraquartet.net> <1206788577.3621.15.camel@localhost> <47EEC989.5020603@chiaraquartet.net> <1206839984.3621.71.camel@localhost> <47FC4A83.6080205@chiaraquartet.net> In-Reply-To: X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] practical phar considerations From: greg@chiaraquartet.net (Gregory Beaver) Pierre Joye wrote: > 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, 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