PEAR is archived and read-only

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

Home » File Formats » Archive_Zip » Bug #7615

Failed extracting a 1.5Mb file

Details

Submitted2006-05-12 17:01 UTC
Fromandres__pinilla at hotmail dot com
StatusSuspended
PackageArchive_Zip
PHP Version4.3.0
OSLinux
Roadmaps(Not assigned)

Comments

[2006-05-12 17:01 UTC] andres__pinilla at hotmail dot com

Description:
------------
It always fails to decompress this file (bta.zip)

you can download file from webpage

http://www.hmt-colombia.com/pub/bta.zip

Test script:
---------------
$nomZip = /home/test/bta.zip;
$nomArc = /bta/Ciclo_26.txt;
$predir = /home/test;

$myZip = new Archive_Zip($nomZip);
$respZ = $myZip->extract(array('by_name' => array($nomArc),
'add_path' => $predir . '/',
'remove_all_path' => true));
$resp = "Result:<br><br>\n";
foreach($respZ as $key => $value)
{
$resp .= $key . " => " . $value . "<br>\n";
if(is_array($value))
foreach($value as $keyA => $valueA)
$resp .= "   " . $keyA . " => " . $valueA . "<br>\n";
}

Expected result:
----------------
The file Ciclo_26.txt uncompressed in directory /home/test

Actual result:
--------------
Web page crashes