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 #7871

Packing with 'no_compression' works incorrectly

Details

Submitted2006-06-12 12:14 UTC
Frompussygrinder at mail dot ru
StatusSuspended
PackageArchive_Zip
PHP Version5.0.5
OSWinXP
Roadmaps(Not assigned)

Comments

[2006-06-12 12:14 UTC] pussygrinder at mail dot ru

Description:
------------
Archives become corrupted when use packing with 'no_comopresson' option set to 'true'. I solved the promlem by changing

$p_header['compression'] = 8;

to

$p_header['compression'] = ($p_params['no_compression'] ? 0 : 8);

in 'zip.php' file on line 1429.