Bug #48763 [Asn->Fbk]: ZipArchive produces corrupt OpenOffice.org files
| From: | pajoye@php.net | Date: | Wed, 28 Apr 2010 14:43:12 +0000 |
| Subject: | Bug #48763 [Asn->Fbk]: ZipArchive produces corrupt OpenOffice.org files | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-149989@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=48763&edit=1
ID: 48763
Updated by: pajoye@php.net
Reported by: dani dot church at gmail dot com
Summary: ZipArchive produces corrupt OpenOffice.org files
-Status: Assigned
+Status: Feedback
Type: Bug
Package: Zip Related
Operating System: CentOS 5
PHP Version: 5.2CVS-2009-07-01 (snap)
Assigned To: pajoye
New Comment:
Can you try using 5.3.2 or 5.2.13 please?
Previous Comments:
------------------------------------------------------------------------
[2010-02-01 21:12:56] headofsteam at gmx dot com
pajoye at php.net thanks for reopening.
Don't suppose there is a way to transfer in my comment from #50893 ?
Anyway, I have read through this report again and there may be a
difference other than the OS and version.
This report seems to be highlighting a problem in
ZipArchive::AddFromString() I have been using the IMO more useful
ZipArchive::AddFile() could that be significant.
------------------------------------------------------------------------
[2010-02-01 20:19:27] pajoye@php.net
reopen and assign to me.
------------------------------------------------------------------------
[2009-11-05 12:13:24] pajoye@php.net
Fixed in latest releases too.
------------------------------------------------------------------------
[2009-11-05 12:12:26] pajoye@php.net
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2009-11-05 11:31:50] levelak at post dot cz
This bug does not only affect OpenOffice, but also WinRar (I have
version 3.80 under Windows).
The bug happens whenever a file with more than 255 chars is added via
addFromString...
eg.:
$zip->addFromString("test.txt","asdjdjfdlksjdaf"); //OK
$zip->addFromString("test2.txt",str_repeat("A",256); //Corrupt archive
The issue is resolved by upgrading to 5.2.11, on 5.2.6 it also works
with no problems.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=48763
--
Edit this bug report at http://bugs.php.net/bug.php?id=48763&edit=1