|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-01-24 23:53 UTC] tony2001@php.net
[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-25 08:44 UTC] php-bugs at spuetz dot ath dot cx
[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
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 05:00:01 2025 UTC |
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