| Anonymous | Login | Signup for a new account | 11-01-2025 17:16 PDT |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0003767 | [Quercus] | minor | always | 11-16-09 16:55 | 06-21-12 01:14 | ||||
| Reporter | dobes_vandermeer | View Status | public | ||||||
| Assigned To | nam | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | closed | Product Version | 4.0.0 | ||||||
| Summary | 0003767: Zip methods process files in an unpredictable order, and don't process all files | ||||||||
| Description |
The zip methods don't seem to be able to handle this particular zip file, for unknown reasons. An unpredictable number of files are returned; rarely does it return them all. It doesn't seem to be having this issue with ALL zip files, but I haven't tried with many others. |
||||||||
| Additional Information |
Here's a simple test case that illustrates the problem using the attached zip file: {{{ <?php $file = 'fresh-page.1.1.zip'; // Downloaded from http://downloads.wordpress.org/plugin/fresh-page.1.1.zip [^] $zfd = zip_open($file); for($count=0;;$count++){ $zip_entry=zip_read($zfd); if($zip_entry === FALSE) break; $zname=zip_entry_name($zip_entry); $zip_fs = zip_entry_filesize($zip_entry); $zdir=dirname($zname); $zcfs = zip_entry_compressedsize($zip_entry); echo " } ?> }}} The original PHP returns 264 entries (the last line shows: In quercus I am seeing only 76 lines, the last of which is: 75 Unzipping fresh-page/images/zone_grad.gif from fresh-page.1.1.zip with size 148 and compressed size 114 The next one should have been: |
||||||||
| Attached Files |
|
||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
42 total queries executed. 32 unique queries executed. |