Re: phar API
| From: | Elizabeth M Smith | Date: | Fri, 28 Mar 2008 17:12:08 +0000 |
| Subject: | Re: phar API | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36655@lists.php.net to get a copy of this message | ||
> 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