PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File Formats » File_Archive » Bug #10219

Not any Archive inside an archive wont be recognises while extracting

Details

Submitted2007-02-28 12:37 UTC
Frommarius dot metzler at gmx dot de
Assignedcbrunet
StatusVerified
PackageFile_Archive
PHP Version5.0.4
OSWindows xp
Roadmaps1.5.5

Comments

[2007-02-28 12:37 UTC] marius dot metzler at gmx dot de

Description:
------------
When I would like to read an archive's content the archives inside wont be recognised.

Having this structure:

test.zip // this is the archive I want to read
test1.txt
dontknowthename1.zip
dontknowthename2.zip
test2.txt

Test script:
---------------
$source=File_Archive::read("test.zip/"); // read the archive's content

$source->close();
while($source->next()) {
echo $source->getFilename()."<br>\n"; // output content files
}

Expected result:
----------------
test1.txt
dontknowthename1.zip
dontknowthename2.zip
test2.txt

Actual result:
--------------
test1.txt
test2.txt

[2007-03-08 09:24 UTC] marius dot metzler at gmx dot de

Description:
------------
When I would like to read an archive's content, archives inside wont be recognised.

Having this structure:

test.zip // this is the archive I want to read
test1.txt
dontknowthename1.zip
dontknowthename2.zip
test2.txt

Test script:
---------------
$source=File_Archive::read("test.zip/"); // read the
archive's content

$source->close();
while($source->next()) {
echo $source->getFilename()."<br>\n"; // output
content files
}

Expected result:
----------------
test1.txt
dontknowthename1.zip
dontknowthename2.zip
test2.txt

Actual result:
--------------
test1.txt
test2.txt