|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52341 The created archive's name is appended '.a00564'
Submitted: 2010-07-15 03:40 UTC Modified: 2015-04-26 04:22 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: imyhchou at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: Zip Related
PHP Version: 5.3.2 OS: Window XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-07-15 03:40 UTC] imyhchou at gmail dot com
My enviroment is php5.3.1+IIS5.1+FastCGI. I execute the following code and get two files: and Again I execute it and get two new files: and  After a moment to carry out it again, the end of the serial number of the file's name is change as 01892, such that the two files' names are and

Test script:
$zip = new ZipArchive;
$res = $zip->open('', ZipArchive::CREATE);
if ($res === TRUE) {
    $zip->addFromString('test.txt', 'file content goes here');
    $zip->addFile('data.txt', 'entryname.txt');
    if ($zip->close()===TRUE)
       echo 'Yes';
       echo 'No';
} else {
    echo 'failed';

Expected result:
Generate the archive

Actual result:
Generate two files: and


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-07-19 13:09 UTC]
-Package: PHP options/info functions +Package: Zip Related
 [2015-04-16 13:34 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2015-04-16 13:34 UTC]
I can't reproduce this behavior on recent PHP versions. Does the
issue still persist? Also check the documentation on
ZipArchive::addFile[1] and ZipArchive::CREATE[2].

[1] <>
[2] <>
 [2015-04-26 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jul 13 03:01:26 2020 UTC