#39714 [Opn->Csd]: Files which ate stored in a SubFolder within the archive are not accessible

From: Date: Mon, 04 Dec 2006 12:36:32 +0000
Subject: #39714 [Opn->Csd]: Files which ate stored in a SubFolder within the archive are not accessible
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-105869@lists.php.net to get a copy of this message
ID: 39714 Updated by: tony2001@php.net Reported By: d dot ratz at gmx dot net -Status: Open +Status: Closed Bug Type: Zip Related Operating System: Windows XP SP2 PHP Version: 5.2.0 Assigned To: pierre New Comment: Works -> closed. Previous Comments: ------------------------------------------------------------------------ [2006-12-04 12:32:38] d dot ratz at gmx dot net Tried latest Version from snapshot Built On Dec 04, 2006 07:30 GMT and this works ------------------------------------------------------------------------ [2006-12-02 17:48:42] pajoye@php.net 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 Please provide a script without external data, or with file1.txt and file2.txt (link to). Also try with a recent version (snapshots or from pecl). ------------------------------------------------------------------------ [2006-12-02 16:39:05] d dot ratz at gmx dot net Description: ------------ After creating a Zip-File including subfolders in it, the Structure can not be read with Windows' own Utility (ZIP-compressed Folder - not sure if this is translated correct). All Files that should appear in Subfolder are not shown at all. With WinZip or WinRAR everything is OK. I checked also with System.IO.Packaging API and this Engine is also not able to read the Archive. I used the updated php_zip.dll from php5.2-win32-latest as mentioned in Bug-Report 39506. Reproduce code: --------------- $zip = new ZipArchive; $res = $zip->open('some.zip', ZipArchive::CREATE); if ($res === TRUE) { $zip->addFile('file1.txt', 'file1.txt'); $zip->addFile('file2.txt', '/sub/file2.txt'); } Expected result: ---------------- Zip-File with structure file1.txt sub | +-file2.txt Actual result: -------------- Structure in Windows-Tool and System.IO.Packaging API file1.txt Structure in WinZip / WinRar file1.txt sub | +-file2.txt ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39714&edit=1

« previous php.bugs (#105869) next »