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