|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59368 apc_store: invalid "potential cache slam" warning
Submitted: 2010-08-16 09:10 UTC Modified: 2016-09-11 04:22 UTC
From: sebastian at 7val dot com Assigned: cmb (profile)
Status: No Feedback Package: APC (PECL)
PHP Version: 5.2.13 OS: Ubuntu 64Bit
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
6 + 7 = ?
Subscribe to this entry?

 [2010-08-16 09:10 UTC] sebastian at 7val dot com
Calling apc_store two times in a row with the keys "75" and "6V" issues a "Potential cache slam" warning, although the keys aren't the same.

Reproduce code:

$s1 = '75';
$s2 = '6V';

apc_store($s1, 1);
apc_store($s2, 2);

echo apc_fetch($s1) . "\n";
echo apc_fetch($s2) . "\n";

Expected result:

Actual result:
Warning: apc_store(): Potential cache slam averted for key '6V' in /home/seb/tmp/apc.php on line 7


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-05 21:02 UTC] aurelien dot lequoy at gmail dot com
work good in 5.4.19-1~dotdeb.1 (cli) (built: Aug 27 2013 00:42:43)
 [2016-08-31 15:44 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2016-08-31 15:44 UTC]
APC's apc_store() has been superseeded by APCu's apcu_store().
Does this issue still occur using the latter?
 [2016-09-11 04:22 UTC] pecl-dev 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-2022 The PHP Group
All rights reserved.
Last updated: Mon Dec 05 04:05:52 2022 UTC