Bug #63108 [Opn->Fbk]: ZipArchive uncompress bug
| From: | ab@php.net | Date: | Mon, 01 Oct 2012 08:21:53 +0000 |
| Subject: | Bug #63108 [Opn->Fbk]: ZipArchive uncompress bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173834@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63108&edit=1
ID: 63108
Updated by: ab@php.net
Reported by: sharqgm at gmail dot com
Summary: ZipArchive uncompress bug
-Status: Open
+Status: Feedback
Type: Bug
Package: Zip Related
Operating System: windows 7
PHP Version: 5.3.17
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2012-10-01 08:02:15] ab@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