Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36655 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71228 invoked from network); 28 Mar 2008 16:12:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Mar 2008 16:12:13 -0000 X-Host-Fingerprint: 24.247.219.180 24-247-219-180.dhcp.cdwr.mi.charter.com Received: from [24.247.219.180] ([24.247.219.180:2219] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/8D-25926-CD81DE74 for ; Fri, 28 Mar 2008 11:12:13 -0500 Message-ID: <07.8D.25926.CD81DE74@pb1.pair.com> To: internals@lists.php.net Date: Fri, 28 Mar 2008 12:12:08 -0500 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 References: <1206719555.6331.39.camel@localhost> In-Reply-To: <1206719555.6331.39.camel@localhost> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Posted-By: 24.247.219.180 Subject: Re: [PHP-DEV] phar API From: auroraeosrose@gmail.com (Elizabeth M Smith) > Elizabeth, et al, the concrete semantic of Phar::isWritable() is what? > Is it just is_writable('test.phar') or is it Phar::canWrite() && > is_writable('test.phar')? I'd vote for Phar::canWrite() && is_writable('test.phar') - so you know if you actually can change the phar. > Benjamin, could you live with the proposed change of the ArrayAccess > usage? > > The RFC: http://wiki.php.net/rfc/streamline-phar-api > > cu, Lars After looking over the rfc - the phar as a multidimensional array, the isWriteable, the createDirectory and the Phar::create would solve most of my current API gripes for phar - the rest...I don't know what rewriting all the splfileobject and splfileinfo methods would achieve... The only things I see missing are an addFile and addDirectory shortcut methods for when I don't want to mess with all the metadata or creating iterators. Thanks, Elizabeth Smith