|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56102 ref count become greater and greater
Submitted: 2004-06-17 09:55 UTC Modified: 2004-06-26 23:48 UTC
From: xuefer at 21cn dot com Assigned: gschlossnagle (profile)
Status: Closed Package: APC (PECL)
PHP Version: 4.3.3 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: xuefer at 21cn dot com
New email:
PHP Version: OS:


 [2004-06-17 09:55 UTC] xuefer at 21cn dot com

most of the files has ref_count==0
some in range(0, 10)
some >1000
and even, of of it is ref_count==hits
by the time this bug is report, ref_count>6000
this make it impossible to do apc_clear_cache() for those files

should be a bug? or just incomplete function?
as i read the code, apc_deactivate() is never used

/* {{{ request init and shutdown */
int apc_request_shutdown()
    return 0;
/* }}} */

/* {{{ apc_deactivate */
void apc_deactivate()


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-17 10:08 UTC] xuefer at 21cn dot com
FYI: most of these files is not used by include(), but directly request by user-agent
 [2004-06-18 13:37 UTC] xuefer at 21cn dot com
calling apc_deactivate() in apc_request_shutdown()
"fixed" the bug
but it's never called, from the time apc 2.0 in imported pear/apc
i don't know if will make apc unstable
 [2004-06-19 07:51 UTC] xuefer at 21cn dot com
it's been only till now, seems stable
can anyone commit it to cvs?
 [2004-06-19 07:52 UTC] xuefer at 21cn dot com
sorry, only->online
 [2004-06-26 23:48 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Jan 24 10:03:34 2022 UTC