php.net |  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-08-16 09:10 UTC] sebastian at 7val dot com
Description:
------------
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:
---------------
<?php

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

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

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


Expected result:
----------------
1
2

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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2016-08-31 15:44 UTC] cmb@php.net
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-2021 The PHP Group
All rights reserved.
Last updated: Tue Dec 07 11:03:34 2021 UTC