Bug #71904 [Opn->Fbk]: Not extracting folder, only contents

From: Date: Thu, 31 Mar 2016 13:04:27 +0000
Subject: Bug #71904 [Opn->Fbk]: Not extracting folder, only contents
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200267@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71904&edit=1 ID: 71904 Updated by: cmb@php.net Reported by: skrzypecki at gmail dot com Summary: Not extracting folder, only contents -Status: Open +Status: Feedback Type: Bug Package: Zip Related Operating System: Centos PHP Version: 7.0.4 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Please supply (for downloading from somewhere on the web) a minimal ZIP archive which exhibits the reported behavior . Previous Comments: ------------------------------------------------------------------------ [2016-03-26 11:30:25] skrzypecki at gmail dot com Description: ------------ https://www.reddit.com/r/PHPhelp/comments/4b2go8/zipfile_from_c_behaves_different_in_php55_and/ When creating a zip folder with c#'s ZipFile.CreateFromDirectory(path, zipPath, CompressionLevel.Optimal, true); we get a zip which contains a folder. If this zip is extracted with php55 ($zip->extractTo('/my/destination/dir/');), we have the extracted folder in the location we defined. But when the zip is extracted with php70 with exactly the same call as above we dont get the folder in the defined extractTo path, but the contents in the folder. So in php77 the folder which is in the zip is skipped and the contents in the folder is extracted. The strange thing is that this only happens when using the c# call. So i'm not sure if it's a php thing or c# thing. When i create a zip with a folder in the trough 7zip, php70 behaves exactly as expected (which is what php55 does). ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71904&edit=1

« previous php.bugs (#200267) next »