|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-14 09:33 UTC] tony2001@php.net
[2006-11-14 09:53 UTC] hscheidegger at zumbach dot ch
[2006-11-14 14:37 UTC] pajoye@php.net
[2006-11-14 19:10 UTC] hscheidegger at zumbach dot ch
[2006-11-15 16:26 UTC] pajoye@php.net
[2006-11-15 18:00 UTC] hscheidegger at zumbach dot ch
[2006-11-15 19:18 UTC] pajoye@php.net
[2006-11-16 13:13 UTC] hscheidegger at zumbach dot ch
[2006-11-17 18:42 UTC] pajoye@php.net
[2011-08-19 09:48 UTC] claudio dot baratti at gmail dot com
[2011-08-19 10:01 UTC] pajoye@php.net
[2011-08-19 11:34 UTC] claudio dot baratti at gmail dot com
[2011-08-19 11:37 UTC] pajoye@php.net
[2011-08-19 12:11 UTC] claudio dot baratti at amps-llc dot com
[2011-08-19 12:24 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 08:00:01 2025 UTC |
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.