Bug #5221 [Fbk->NoF]: Archive_Tar::addModify() Example 37-1 is wrong
| From: | danielc@php.net | Date: | Sun, 23 Oct 2005 17:40:01 +0000 |
| Subject: | Bug #5221 [Fbk->NoF]: Archive_Tar::addModify() Example 37-1 is wrong | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-7072@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: danielc@php.net
Reported By: dforsi at despammed dot com
-Status: Feedback
+Status: No Feedback
Id: 5221
Type: Bug
Package: Documentation
Operating System: All
PHP Version: Irrelevant
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2005-09-09 15:46:52] at php dot net
I fail to see the error on this page. The example looks identical to
the one you've provided in your report.
------------------------------------------------------------------------
[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