From: harlequin2 at gmx dot de
Operating system: Windows 2003 SP2
PHP version: 5.2.6
PHP Bug Type: Zip Related
Bug description: 2 ZIP archives created when creating archive in folder wwwroot
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 bug report at http://bugs.php.net/?id=45156&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45156&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45156&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45156&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45156&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45156&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45156&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45156&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45156&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45156&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45156&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45156&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45156&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45156&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45156&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45156&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45156&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45156&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45156&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45156&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45156&r=mysqlcfg