|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-08-19 16:51 UTC] cmb@php.net
-Status: Open
+Status: Verified
-Assigned To:
+Assigned To: cmb
[2015-08-19 16:51 UTC] cmb@php.net
[2015-08-19 16:53 UTC] cmb@php.net
[2015-08-19 16:53 UTC] cmb@php.net
-Status: Verified
+Status: Closed
[2015-08-19 16:53 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 20:00:02 2026 UTC |
Description: ------------ Example #1 A PharData::decompress() example <?php $p = new PharData('/path/to/my.tar', 0, 'my.tar.gz'); $p['myfile.txt'] = 'hi'; $p['myfile2.txt'] = 'hi'; $p3 = $p2->decompress(); // creates /path/to/my.tar ?> --- From manual page: http://www.php.net/phardata.decompress --- On the line: $p3 = $p2->decompress(); // creates /path/to/my.tar $p2 is clearly undefined. The line should probably be changed to: $p2 = $p->decompress(); // creates /path/to/my.tar