#40278 [Opn->Fbk]: Added files are corruped.
| From: | tony2001@php.net | Date: | Mon, 29 Jan 2007 20:52:36 +0000 |
| Subject: | #40278 [Opn->Fbk]: Added files are corruped. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108205@lists.php.net to get a copy of this message | ||
ID: 40278
Updated by: tony2001@php.net
Reported By: ssites at nanlucian dot com
-Status: Open
+Status: Feedback
Bug Type: Zip Related
Operating System: Windows XP SP2
PHP Version: 5.2.0
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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