Bug #5221 [Opn->Fbk]: Archive_Tar::addModify() Example 37-1 is wrong
| From: | Unknown Sender | Date: | Fri, 09 Sep 2005 19:46:52 +0000 |
| Subject: | Bug #5221 [Opn->Fbk]: Archive_Tar::addModify() Example 37-1 is wrong | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-6776@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=5221&edit=1
ID: 5221
Updated by: @php.net
Reported By: dforsi at despammed dot com
-Status: Open
+Status: Feedback
Id: 5221
Type: Bug
Package: Documentation
Operating System: All
PHP Version: Irrelevant
New Comment:
I fail to see the error on this page. The example looks identical to
the one you've provided in your report.
Previous Comments:
------------------------------------------------------------------------
[2005-08-27 13:30:50] dforsi at despammed dot com
Description:
------------
In example 37-1 of Archive_Tar::addModify() there is no
$remove_dir, so "dev/" and "log/" must stay.
Example should be like this:
<?php
$tar_object = new Archive_Tar("tarname.tar");
$v_list[0]="dev/file.txt";
$v_list[1]="dev/data/";
$v_list[2]="log/file.log";
$tar_object->addModify($v_list, "install");
// files are stored in the archive as :
// install/dev/file.txt
// install/dev/data
// install/dev/data/file1.txt
// install/dev/data/... all the files and sub-dirs of
dev/data/
// install/log/file.log
?>
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=5221&edit=1