|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-06-03 10:48 UTC] pajoye@php.net
[2008-06-03 12:00 UTC] harlequin2 at gmx dot de
[2008-06-03 12:23 UTC] pajoye@php.net
[2008-06-03 13:33 UTC] harlequin2 at gmx dot de
[2008-06-03 13:43 UTC] harlequin2 at gmx dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 01:00:01 2025 UTC |
Description: ------------ If I create a ZipArchive in the folder "C:\Inetpub\wwwroot", then two zip files are created with the names "temp.zip.a11860" and "temp.zip.b11860". Renaming the files to "temp.zip" and opening it shows that both files contain the same files, so it's not something like a splitted archive. If I change $filename (i.e. "C:/Inetpub/temp.zip" or anything else), then only one file is created. I checked if it has something to do with dos' maximum filename length, but that was not the case. The effect only occurres when the file is created within the folder "wwwroot", subfolders included. Reproduce code: --------------- $filename = "C:/Inetpub/wwwroot/temp.zip"; // I also tried ZIPARCHIVE::OVERWRITE if ($zip->open($filename, ZIPARCHIVE::CREATE)!== true){ $zip->addFile("test.xls", "test.xls"); $zip->close(); Expected result: ---------------- One ZipArchive with the name "temp.zip" created Actual result: -------------- Two ZipArchives with the names "temp.zip.a11860" and "temp.zip.b11860" created