ID: 39506 User updated by: hscheidegger at zumbach dot ch Reported By: hscheidegger at zumbach dot ch -Status: Feedback +Status: Open Bug Type: Zip Related Operating System: Windows XP PHP Version: 5.2.0 Assigned To: pajoye New Comment:
Yes I did and it works without error. Now, how to get work the .dll version with Apache 2.2.3 on Windows XP? Previous Comments: ------------------------------------------------------------------------ [2006-11-14 14:37:46] [EMAIL PROTECTED] Can you try your script using CLI? ------------------------------------------------------------------------ [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