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:      pajoye
 New Comment:

Can you try:

error_reporting(E_AL));
$filename = "C:/Inetpub/wwwroot/test.txt";
touch($filename);
unlink($filename);

(be sure to have display_errors to On).

The 2nd test is to run the same script using CLI. I don't have access
to windows 2k3 right now, but I can test that too later this week.


Previous Comments:
------------------------------------------------------------------------

[2008-06-03 12:00:59] harlequin2 at gmx dot de

I see the two created files after I have called $zip->close() and after
the script has finished running. A call to $zip->status returns 0,
$zip->numFiles is showing 1 item in the file.
There are no previous methods executed.

------------------------------------------------------------------------

[2008-06-03 10:48:44] [EMAIL PROTECTED]

> 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.

------------------------------------------------------------------------

[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

Reply via email to