PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » File Formats » Archive_Zip » Bug #2302

Creating a Zip Archive

Details

Submitted2004-09-08 10:17 UTC
Fromrudolf dot weber at bigfoot dot de
StatusSuspended
PackageArchive_Zip
PHP VersionIrrelevant
OSWindows
Roadmaps(Not assigned)

Comments

[2004-09-08 10:17 UTC] rudolf dot weber at bigfoot dot de

Description:
------------
I was zipping a directory structure with a lot of files inside. If i opend the zip file i got entries for directories, and they look like files with 0 Byte length.

I changed the ZIP.PHP from (Line 1179 Version 1.6)

if ((is_file($p_filename)) || ((is_dir($p_filename)) && !$p_remove_all_dir)) {

to
if (is_file($p_filename)) {

and it worked for me. I don't know if this is a bug or if i was using the class in a wrong way. More documentation would be nice ;-)

Hope that helps
Rudi