Hi,
A quick update on Phar's API for those who are keeping score:
1) Phar->isWritable() now works properly and does what Liz was hoping:
tells you whether you can actually modify the phar archive by looking at
the archive's file perms as well as phar.readonly
2) PharFileInfo->getContent() added t
Hi,
I've just implemented these features:
1) new getContents() method allows directly retrieving file contents.
Here is a full-circle example:
getContents();
?>
2) addFile/addEmptyDir/addFromString. API is identical to ext/zip
addEmptyDir('hello');
var_dump($phar['hello']->isDir());
$phar->add