Edit report at https://bugs.php.net/bug.php?id=63108&edit=1

 ID:                 63108
 Updated by:         paj...@php.net
 Reported by:        sharqgm at gmail dot com
 Summary:            ZipArchive uncompress bug
-Status:             Closed
+Status:             Not a bug
 Type:               Bug
 Package:            Zip Related
 Operating System:   windows 7
 PHP Version:        5.3.17
 Assigned To:        ab
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2012-10-07 22:42:35] sharqgm at gmail dot com

OK. Thanks for your help. The problem caused by different things. I dont know 
yet 
what, but it related to joomla and not PHP. :)

------------------------------------------------------------------------
[2012-10-02 07:31:14] sharqgm at gmail dot com

- extratched and zipped on local server
 - The zip compression is checked: OK. (filesize same)
 - After upload, the filesize is: OK.
 - After unzip, the filesize is: DIFFERENT...

Server: 25,822,309 Files: 4854 Dirs: 1131

Local : 18,258,381 Files: 4854 Dirs: 1131
Size on Disk: 30,134,453

File: Joomla_2.5.6-Stable-Full_Package.zip

Intresting... :S

------------------------------------------------------------------------
[2012-10-01 08:02:15] a...@php.net

I don't get exactly - is a zip file damaged after upload? Does zip ext extract 
it locally?

Were it possible you to post that zip file (or another one which causes the zip 
ext to work wrong)?

------------------------------------------------------------------------
[2012-09-18 08:26:30] sharqgm at gmail dot com

Description:
------------
Some info: I use ziparchive because in my project (joomla) have a lot of small 
files and the upload time is too long (50-120 minute) 

What I did: 

 - Zipped a fresh copy of joomla
 - uploaded to the server
 - extratched by ZipArchive

My keywords and description metadatas are missing. It seems like there is a bug 
with the newline caracter, because when I see the source, there is just a mass 
of 
unformatted code, but on localhost OK. When I avoid this process and uploaded 
files directly everything ok. So the problem come from the ZipArchive.

(sorry for the poor description, I'm not prof, just wanted to notice :))

Test script:
---------------
     $zip = new ZipArchive;
     $res = $zip->open('un.zip');
     if ($res === TRUE) {
         $zip->extractTo('./');
         $zip->close();
         echo 'ok';
     } else {
         echo 'failed';
     }

Actual result:
--------------
Keyword and desc meta tag-s missing. 
New lines missing from the most part of the code.


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63108&edit=1

Reply via email to