php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59218 apc.slam_defence setting ignored
Submitted: 2010-05-17 18:01 UTC Modified: 2016-08-31 15:34 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: alain dot russell at blackpepper dot co dot nz Assigned: cmb (profile)
Status: Wont fix Package: APC (PECL)
PHP Version: 5.2.13 OS: Ubuntu Server 9.04 64bit
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alain dot russell at blackpepper dot co dot nz
New email:
PHP Version: OS:

 

 [2010-05-17 18:01 UTC] alain dot russell at blackpepper dot co dot nz
Description:
------------
setting apc.slam_defence=Off is ignored and errors are still 
logged as [apc-warning] Potential cache slam averted for key 
'foo' in xx.php on line 7.

Current settings are:

extension="apc.so"
apc.enable_cli=0
apc.enabled=1
apc.file_update_protection=5
apc.gc_ttl=3600
apc.max_file_size=2M  
apc.num_files_hint=6000
apc.shm_segments=1
apc.shm_size=256
apc.user_ttl=3600
apc.slam_defense=0
apc.write_lock=1

var_dump('slam_defense: ', ini_get('apc.slam_defense'));
string(14) "slam_defense: "
string(0) ""

var_dump('write_lock: ', ini_get('apc.write_lock'));
string(12) "write_lock: "
string(1) "1"

Rolling back to 3.1.2 for now resolved cache slam issue.

Reproduce code:
---------------
apc_store('foo', 1);
echo apc_fetch('foo') . '<br>';

apc_store('foo', 2);
echo apc_fetch('foo') . '<br>';

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

Actual result:
--------------
1
1

Warning Logged: [apc-warning] Potential cache slam averted for 
key 'foo' in xx.php on line x.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-28 08:59 UTC] gopalv82 at yahoo dot com
I can't seem to reproduce this on my machine - at least, not on the 5.3.x build I'm using for QA right now (lucid 10.04).
 [2010-06-15 11:37 UTC] korchasa at gmail dot com
I have the same problem. Output of the given example:
1
[Tue Jun 15 19:27:58 2010] [apc-warning] Potential cache slam 
averted for key 'foo' in /tmp/apc.php on line 5.
1

Ubuntu 10.4 64bit, PHP 5.3.1 (cli), APC 3.1.3p1
 [2010-06-16 11:20 UTC] parf at comfi dot com
SAME Problem:

php 5.3.3
apc 3.1.3p1

>>> apc_store("x",1)                     
true                                 
>>> apc_store("x",1)
[Wed Jun 16 11:06:52 2010] [apc-warning] Potential cache slam averted for key 'x' in /hb/bin/phpa(192) : eval()'d code on line 1.                                            
false

apc.slam_defense=0
apc.write_lock=0

does not help

please help
 [2010-06-25 03:03 UTC] se at plista dot com
Also here with Ubuntu 10.04 (Lucid). See #16814
 [2010-07-16 05:35 UTC] kipelovets at mail dot ru
i have exactly the same problem on FreeBSD 8.0, can't get rid 
of that message
 [2011-01-05 08:57 UTC] jason at green dot cx
Same for me too. Ubuntu 10.04 changing it to off in php.ini 
setting is ignored!

Killing my HD I/O!!!
 [2016-08-31 15:34 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2016-08-31 15:34 UTC] cmb@php.net
According to <https://bugs.php.net/69618>, 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: Fri Dec 27 00:01:30 2024 UTC