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

 ID:                 63108
 Comment by:         a...@php.net
 Reported by:        sharqgm at gmail dot com
 Summary:            ZipArchive uncompress bug
 Status:             Open
 Type:               Bug
 Package:            Zip Related
 Operating System:   windows 7
 PHP Version:        5.3.17
 Block user comment: N
 Private report:     N

 New Comment:

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)?


Previous Comments:
------------------------------------------------------------------------
[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