From: d dot ratz at gmx dot net Operating system: Windows XP SP2 PHP version: 5.2.0 PHP Bug Type: Zip Related Bug description: Files which ate stored in a SubFolder within the archive are not accessible
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 bug report at http://bugs.php.net/?id=39714&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39714&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39714&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39714&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39714&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39714&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39714&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39714&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39714&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39714&r=support Expected behavior: http://bugs.php.net/fix.php?id=39714&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39714&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39714&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39714&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39714&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39714&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39714&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39714&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39714&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39714&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39714&r=mysqlcfg