Bug #12180 [Fbk->NoF]: unable to extract zip archives from eclipse
| From: | daniel dot oconnor at gmail dot com | Date: | Mon, 23 Mar 2009 16:58:21 +0000 |
| Subject: | Bug #12180 [Fbk->NoF]: unable to extract zip archives from eclipse | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-236@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=12180&edit=1
ID: 12180
Updated by: daniel.oconnor@gmail.com
Reported By: mkirk at cs dot umn dot edu
Summary: unable to extract zip archives from eclipse
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: File_Archive
Operating System: Solaris 5.8
Package Version: 1.5.3
PHP Version: 5.2.3
Roadmap Versions:
New Comment:
-Status: Feedback
+Status: No Feedback
Previous Comments:
------------------------------------------------------------------------
[2008-03-23 01:23:16] doconnor
Michael,
Any chance of reproduce code (php) and a sample zip file?
------------------------------------------------------------------------
[2007-10-03 19:22:23] michaelkirk
Description:
------------
Using the IDE eclipse 3.3, you can export a project as a zip archive.
If you attempt to unzip this file using file_archive, only the first
file in the archive is extracted. When this happens, the system throws
no errors, as if everything went well.
I am able to unzip then rezip these files using the command line zip
(Zip 2.31) and unzip on Ubuntu linux. Then successfully extract the
entire contents of the archive with file_archive.
$ file archive2.zip archive2.zip: Zip archive data, at least v1.0 to
extract
this archive submits correctly.
Maybe the Zip library used by Pear's File_Archive is less than version
2.
Test script:
---------------
The unix utility 'file' might shed some light...
archive.zip is an archive with 2 files created from eclipse, ".project"
and "file.php"
$ file archive.zip
> archive.zip: Zip archive data, at least v2.0 to extract
extracting this archive with file_archive gives no error, but only the
first file is extracted.
The archive is extracted completely with command line unzip 5.52, then
rezipped with command line zip
$ unzip archive.zip
$ zip archive2 -r archive
> adding: archive2/ (stored 0%)
> adding: archive2/.project (deflated 49%)
> adding: archive2/file.php (deflated 23%)
$file archive2.zip
> archive2.zip: Zip archive data, at least v1.0 to extract
as you can see, this time the archive seems to have been zipped more
compatibly. File_archive successfully and completely extracts
archive2.zip.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=12180&edit=1