Version 1.3.0
- * Provide an additional header that allows better compatibility with PHP 4
- __HALT_COMPILER();function __HALT_COMPILER(){}$a=<<<PHARDATABEGIN\n
* ability to have Phar object return file class as offsetGet() result
* ability to store empty directories
* implement PPG signing
- * ability to match files containing a metadata key opendir('phar://a.phar/?mime-type=image/jpeg')
- or foreach ($p->match('mime-type', 'image/jpeg') as $file)
+ X tar support [Greg]
+ X zip support [Greg]
X Phar::copy($from, $to); [Greg]
X Phar::delete($what) [Greg]
X Phar::buildFromIterator(Iterator $it[, string $base_directory]) [Greg]
* Layout: Option to compress all content rather than single files.
- That excludes stub and manifest haeder.
+ That excludes stub and manifest haeder. (tar only)
X clean crap paths like phar://blah.phar/file//../to\\here.php [Greg]
{
#if HAVE_PHAR_ZIP
if (data->zip) {
- zip_close(data->zip);
+ _zip_free(data->zip);
data->zip = 0;
}
#endif
efree(user_stub);
}
} else {
- if (archive->is_brandnew) {
+ if (-1 != phar_stub_index) {
struct zip_source *source;
/* this is a brand new phar, add the stub */
if (NULL == (source = zip_source_buffer(archive->zip, newstub, sizeof(newstub) - 1, 0)) || -1 == zip_add(archive->zip, ".phar/stub.php", source)) {