Bug #5221 [NEW]: Archive_Tar::addModify() Example 37-1 is wrong
| From: | dforsi at despammed dot com | Date: | Sat, 27 Aug 2005 17:30:50 +0000 |
| Subject: | Bug #5221 [NEW]: Archive_Tar::addModify() Example 37-1 is wrong | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-6707@lists.php.net to get a copy of this message | ||
From: dforsi at despammed dot com
Operating system: All
PHP version: Irrelevant
Package: Documentation
Bug Type: Bug
Bug description: Archive_Tar::addModify() Example 37-1 is wrong
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 bug report at http://pear.php.net/bugs/bug.php?id=5221&edit=1
--