extractTo not extracting empty directories
| Bug #40228 | extractTo not extracting empty directories | ||||
|---|---|---|---|---|---|
| Submitted: | 2007-01-24 23:50 UTC | Modified: | 2007-01-29 16:02 UTC | ||
| From: | php-bugs at spuetz dot ath dot cx | Assigned: | pajoye (profile) | ||
| Status: | Closed | Package: | Zip Related | ||
| PHP Version: | 5.2.0 | OS: | Linux | ||
| Private report: | No | CVE-ID: | None | ||
[2007-01-24 23:50 UTC] php-bugs at spuetz dot ath dot cx
Description:
------------
I have a issue with extractTo(), it's not extracting empty directories.
Reproduce code:
---------------
$ mkdir -p test/empty
$ zip -r test.zip test
adding: test/ (stored 0%)
adding: test/empty/ (stored 0%)
$ rm -rf test
$ php -r '$zip = new ZipArchive(); $zip->open("test.zip"); $zip->extractTo("./");'
Expected result:
----------------
unzip works as expected:
$ unzip test.zip
Archive: test.zip
creating: test/
creating: test/empty/
find
.
./test
./test/empty
./test.zip
Actual result:
--------------
$ find
.
./test
./test.zip
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2007-01-25 00:19 UTC] php-bugs at spuetz dot ath dot cx
[2007-01-25 00:21 UTC] pajoye@php.net
[2007-01-28 02:54 UTC] pajoye@php.net
[2007-01-29 03:18 UTC] pajoye@php.net
[2007-01-29 16:02 UTC] pajoye@php.net