|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58356 apc_fetch() bug
Submitted: 2008-09-28 01:36 UTC Modified: 2016-08-31 15:06 UTC
From: phpdesigner at yahoo dot com Assigned: cmb (profile)
Status: Wont fix Package: APC (PECL)
PHP Version: 5.2.5 OS: WIN32
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: phpdesigner at yahoo dot com
New email:
PHP Version: OS:


 [2008-09-28 01:36 UTC] phpdesigner at yahoo dot com
I'm using latest version of APC for win32 to get upload progress.
All is good, Thanks for it's developers. But:
when I'm uploading a file, progress is good and show's total size, uploaded size and start time. when i open new browser window and attemp to upload another file( when the first file is uploading yet ) all the things is wrong.
first file statistics will freeze and second file will show wrong statistics:
-- total size: 11165814 bytes
-- current   : 949774611244 bytes (uploaded bytes from first file plus second file sizes!!!)
note that i change progress_key every time, but anythings is wrong.

-System software:
I'm using Win XP
Apache 2
PHP 5.2.5
php_apc.dll 3.0.17-dev
-system hardware:
One Pentium 4 cpu
768MB (256MB + 512MB) Ram

Reproduce code:
--- $id = md5(rand(0, 99999).' '.rand(0,99999));
--- <input type="hidden" name="APC_UPLOAD_PROGRESS"
--- id="progress_key" value="<?=$id?>">
--- <input type="file" id="file" name="file"><br>

--- $id = $_GET['progress_key']; // get key from address
--- $status = apc_fetch('upload_'.$id); // file info
--- print_r($status); // show file info

php.ini variables set:
--- [apc]
--- apc.rfc1867 = On

Expected result:
stop statistics for first file and show wrong information for second file when we are uploading both in one time.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-28 12:01 UTC] pierre dot php at gmail dot com
moved to APC category.
 [2008-09-28 13:51 UTC] gopalv82 at yahoo dot com
APC uploadprogress was never threadsafe to begin with and doesn't really work on TSRM mode (i.e apache2 worker MPM).

I've not ventured into that part of code so far. I plan to fix that in 3.1.x after the initial release.
 [2016-08-31 15:06 UTC]
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2016-08-31 15:06 UTC]
According to <>, APC support has been
discontinued in favor of OPcache, APCu, the session upload
progress API and WinCache. Therefore this issue won't get fixed.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 05:01:29 2024 UTC