Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.5

Bug #12180 unable to extract zip archives from eclipse
Submitted: 2007-10-03 23:22 UTC
From: michaelkirk Assigned:
Status: No Feedback Package: File_Archive (version 1.5.3)
PHP Version: 5.2.3 OS: Solaris 5.8
Roadmaps: (Not assigned)    
Subscription  


 [2007-10-03 23:22 UTC] michaelkirk (Michael Kirk)
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.

Comments

 [2008-03-23 05:23 UTC] doconnor (Daniel O'Connor)
Michael, Any chance of reproduce code (php) and a sample zip file?
 [2009-03-23 20:58 UTC] doconnor (Daniel O'Connor)
-Status: Feedback +Status: No Feedback