ID: 39506 Updated by: [EMAIL PROTECTED] Reported By: hscheidegger at zumbach dot ch -Status: Open +Status: Assigned Bug Type: Zip Related Operating System: Windows XP PHP Version: 5.2.0 -Assigned To: +Assigned To: pajoye
Previous Comments: ------------------------------------------------------------------------ [2006-11-14 09:53:34] hscheidegger at zumbach dot ch We have the same behaviour with the proposed CVS snapshot. Do you need additional information? ------------------------------------------------------------------------ [2006-11-14 09:33:20] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip ------------------------------------------------------------------------ [2006-11-13 23:22:32] hscheidegger at zumbach dot ch Description: ------------ We use PHP 5.2 on Windows XP and Server 2003, not the CGI version. We are running Apache 2 with php as module and php_zip.dll as extension declared in php.ini. The following script produces a corrupt zip archive, depending the content of 'TestDoc1.txt': <?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'; } ?> Reproduce code: --------------- zip archive ok with TestDoc1.txt: ================================= <body bgcolor="#CED5E5"> <br> </body> This is some text, we have to fill the file with nonsense. zip archive corrupt with TestDoc1.txt: ====================================== <body bgcolor="#CED5E5"> <br> x </body> This is some text, we have to fill the file with nonsense. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39506&edit=1