Phar::decompress – is this an error?

PHP: Phar::decompress – Manual

This is the code from the Example #1:


$p = new Phar('/path/to/my.phar', 0, 'my.phar.gz');
$p['myfile.txt'] = 'hi';
$p['myfile2.txt'] = 'hi';
$p3 = $p2->decompress(); // creates /path/to/my.phar

I am not understanding the $p2 part. It was not set before and it is used there for the first time? I am not sure what would be in it and where would be coming from…. … Read the entire article at the source link…

#codango #developer #development #coder #coding

We're happy to share this resource that we found. The content displayed on this page is property of it's original author and/or their organization.


Leave a Reply

Your email address will not be published. Required fields are marked *