ID: 40278 User updated by: ssites at nanlucian dot com Reported By: ssites at nanlucian dot com -Status: Feedback +Status: Closed Bug Type: Zip Related Operating System: Windows XP SP2 PHP Version: 5.2.0 New Comment:
10X. It's working with the latest version. Previous Comments: ------------------------------------------------------------------------ [2007-01-29 20:52:36] [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 ------------------------------------------------------------------------ [2007-01-29 20:42:32] ssites at nanlucian dot com Description: ------------ I create the archive but when I open it, the file(s) is (are) corrupted. With path or without path (at the first parameter), the file(s) is corrupted. Reproduce code: --------------- <?php $zip = new ZipArchive; $res = $zip->open('test.zip', ZipArchive::CREATE); if ($res === TRUE) { $zip->addFile('Untitled-1.jpg', 'Untitled-1.jpg'); $zip->close(); echo 'ok'; } else { echo 'failed'; } ?> Expected result: ---------------- I expect to open and extract the file(s) successfully. Actual result: -------------- The file(s) from created archive is (are) corrupted. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40278&edit=1