ID: 45156 Updated by: [EMAIL PROTECTED] Reported By: harlequin2 at gmx dot de -Status: Open +Status: Feedback Bug Type: Zip Related Operating System: Windows 2003 SP2 PHP Version: 5.2.6 -Assigned To: +Assigned To: pajoye New Comment:
> zip files are created with the names "temp.zip.a11860" One temp file is created until the archive is closed (finished). Do you see them while creating the archive or even after you called the close method? If you see them after the close call, please check the return value of the close call as well as other methods. Previous Comments: ------------------------------------------------------------------------ [2008-06-03 09:58:45] harlequin2 at gmx dot de 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45156&edit=1