#47274 [Opn->Bgs]: Zipfile get corrupted.

From: Date: Mon, 02 Feb 2009 10:42:27 +0000
Subject: #47274 [Opn->Bgs]: Zipfile get corrupted.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-133363@lists.php.net to get a copy of this message
ID: 47274 Updated by: pajoye@php.net Reported By: wolfgang dot forstmeier at gmail dot com -Status: Open +Status: Bogus Bug Type: Zip Related Operating System: Windows XP PHP Version: 5.2.8 -Assigned To: +Assigned To: pajoye New Comment: Duplicated, see #46985 Already fixed. Previous Comments: ------------------------------------------------------------------------ [2009-02-02 10:36:48] wolfgang dot forstmeier at gmail dot com Description: ------------ As described in Bug # 39506 Zip packaged generated through Apache get damaged. Creating Zip packages on CLI does work proper. This bug seems to be introduced within 5.2.8, 5.2.6 is also working proper. Reproduce code: --------------- <?php $zip = new ZipArchive; $res = $zip->open( 'test.zip', ZipArchive::CREATE ); if ($res === TRUE) { $zip->addFile( 'TestDoc1.txt', 'entryname1.txt' ); $zip->close(); echo 'ok'; } else { echo 'failed'; } ?> Expected result: ---------------- Readable Zip Archive Actual result: -------------- Zip Archive could not be read with WinZip. Zip file is currently larger created with Apache than with CLI. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47274&edit=1

« previous php.bugs (#133363) next »