我在尝试使用时收到此错误apc_store().我google了它,发现这是APC timebomb bug,并看到一些修复建议添加apc.slam_defense = Off;到php.ini.
我需要知道是否由于编程错误而发生这种情况,如果是,则如何修复它.
这是代码段:
if ($data = apc_fetch("foo")) {
$an_array = $data;
} else {
/* couple of lines */
apc_store("circles", $an_array); // This is where I get the error
}
Run Code Online (Sandbox Code Playgroud)
将在我部署的系统中频繁调用此脚本.
我希望我提供了足够的信息
提前致谢
ryn*_*nop 28
设置apc.write_lock = 1并apc.slam_defense = 0在php.ini应该解决这个问题.
Ser*_*Oan 15
从APC 3.1.3开始,似乎有一个错误(http://pecl.php.net/bugs/bug.php?id=16814),当大满贯防御处于打开状态时以及当您尝试编写已存在的密钥.
似乎还没有修复.
| 归档时间: |
|
| 查看次数: |
18234 次 |
| 最近记录: |