APC(替代PHP缓存)投入大量PHP通知

mik*_*ike 6 php apc e-notices

我在运行PHP 5.3.6的Linux机器上安装了APC 3.1.9.

缓存工作正常,但我在错误日志中注意到,APC会抛出很多PHP通知,例如:

[Wed Jun 29 01:08:56 2011] [错误] [client ip] PHP注意:require_once()[function.require-once]:apc_cache_find [16085954] \n在第75行的/ path/to/file中,引用:/ path/to/referer/file

[Wed Jun 29 01:08:56 2011] [错误] [client ip] PHP注意:require_once()[function.require-once]:1.h-> opened_pa​​th = [/ path/to/file] h-> filename = [/ path/to/file] \n在第84行的/ path/to/file中,referer:/ path/to/referer/file

[Wed Jun 29 01:08:56 2011] [错误] [客户端IP] PHP注意:未知:apc_cache_find [16215361] \n在第0行的未知中,引用:/ path/to/referer/file

- >/path/to/file&/ path/to/referer/file已被我插入替换原始文件名

知道为什么APC抛出所有这些消息吗?

Ell*_*oad 15

安装/重新安装APC时的确切安装行是:

Enable internal debugging in APC [no] :no
Run Code Online (Sandbox Code Playgroud)

  • 我应该注意,如果你在PECL中进行预构建提示时只按<Enter>,它似乎默认为yes.也就是说,我点击了<Enter>,它在每个页面加载时给了我上面提到的通知.如果你想通过PECL重装,顺便说一句,你必须先做pecl uninstall apc. (7认同)
  • 有没有办法从命令行传递此选项? (2认同)