FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=15673&edit=1

ID: 15673
Updated by: daniel.oconnor@gmail.com
Reported By: anonymous500r at gmail dot com
Summary: Directories in root of zip file are ignored.
-Status: Open
+Status: Feedback
Type: Bug
Package: File_Archive
Operating System: Windows
Package Version: 1.5.4
PHP Version: 5.2.1
Roadmap Versions:
New Comment:

-Status: Open
+Status: Feedback
Got any executable code which demonstrates the problem?


Previous Comments:
------------------------------------------------------------------------

[2009-01-18 11:41:40] anonymous500r

Description:
------------
I'm running xampp on Windows with the file_Archive extension.
It extracts all of the files in the archive perfectly and every
directory that's not in the root of the directory - so a in a Zip
file that looks like this

index.php
images/site/logo.gif
images/welcome.png
contact.php

It extracts all the files, but the images directory is missing.
Any ideas?

Test script:
---------------
Extracting file...index.phpArray
(
[7] => 1354
[9] => 1230044705
[size] => 1354
[mtime] => 1230044705
)
Deleting temporary file...
Extracting file...images/site/logo.gifArray
(
[7] => 879
[9] => 1230683286
[size] => 879
[mtime] => 1230683286
)
Deleting temporary file...
Extracting file...images/site/Array
(
[7] => 0
[9] => 1230684282
[size] => 0
[mtime] => 1230683286
)
Deleting temporary file...
Extracting file...images/welcome.pngArray
(
[7] => 1354
[9] => 1230044705
[size] => 1354
[mtime] => 1230044705
)
Deleting temporary file...
Extracting file...contact.phpArray
(
[7] => 879
[9] => 1230683286
[size] => 879
[mtime] => 1230683286
)

Expected result:
----------------
Extracting file...index.phpArray
(
[7] => 1354
[9] => 1230044705
[size] => 1354
[mtime] => 1230044705
)
Deleting temporary file...
Extracting file...images/site/logo.gifArray
(
[7] => 879
[9] => 1230683286
[size] => 879
[mtime] => 1230683286
)
Deleting temporary file...
Extracting file...images/site/Array
(
[7] => 0
[9] => 1230684282
[size] => 0
[mtime] => 1230683286
)
Deleting temporary file...
Extracting file...images/welcome.pngArray
(
[7] => 1354
[9] => 1230044705
[size] => 1354
[mtime] => 1230044705
)
Deleting temporary file...
Extracting file...images/Array
(
[7] => 0
[9] => 1230044715
[size] => 0
[mtime] => 1230044715
)
Deleting temporary file...
Extracting file...contact.phpArray
(
[7] => 879
[9] => 1230683286
[size] => 879
[mtime] => 1230683286
)



Actual result:
--------------
Extracting file...index.phpArray
(
[7] => 1354
[9] => 1230044705
[size] => 1354
[mtime] => 1230044705
)
Deleting temporary file...
Extracting file...images/site/logo.gifArray
(
[7] => 879
[9] => 1230683286
[size] => 879
[mtime] => 1230683286
)
Deleting temporary file...
Extracting file...images/site/Array
(
[7] => 0
[9] => 1230684282
[size] => 0
[mtime] => 1230683286
)
Deleting temporary file...
Extracting file...images/welcome.pngArray
(
[7] => 1354
[9] => 1230044705
[size] => 1354
[mtime] => 1230044705
)
Deleting temporary file...
Extracting file...contact.phpArray
(
[7] => 879
[9] => 1230683286
[size] => 879
[mtime] => 1230683286
)

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 6, '10 at 3:02p
activeSep 6, '10 at 3:02p
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase