Re: [PHP-DEV] Re: phar API

2008-03-29 Thread Elizabeth M Smith
Hi Marcus, warning I smashed those two replies together into this > You are right about Phar::canWrite() however there is also > Phar::isWriteable(). All we have to do is overload it correctly so that it > returns SplFileInfo::isWriteable() && Phar::canWrite(). Sounds good - one gripe fixed ;) >

Re: [PHP-DEV] Re: phar API

2008-03-29 Thread Marcus Boerger
Hello Elizabeth, Friday, March 28, 2008, 2:21:01 PM, you wrote: > First of all Greg, thanks for all your hard work on phar - however I do > agree that some of the API choices are going to cause confusion with > "casual" phar users. >> 1) if you want to know writability without Phar::canWrite(),

[PHP-DEV] Re: phar API

2008-03-28 Thread Elizabeth M Smith
First of all Greg, thanks for all your hard work on phar - however I do agree that some of the API choices are going to cause confusion with "casual" phar users. > 1) if you want to know writability without Phar::canWrite(), you can > also use is_writeable('phar:///path/to/archive.phar/index.php')

[PHP-DEV] Re: phar API

2008-03-27 Thread Greg Beaver
Benjamin Schulz wrote: Hi, i just read the phar examples in the manual and found things like this: $p = new Phar('coollibrary.phar'); if (Phar::canWrite()) { $fp = fopen('hugefile.dat', 'rb'); $p['data/hugefile.dat'] = $fp; if (Phar::canCompress()) { $p['data/hugefile.dat']->