无法重新声明类sfconfig [英] Cannot redeclare class sfconfig
问题描述
我在Windows XP上使用PHP版本5.2.11运行Symfony(1.2.9).
I am running Symfony (1.2.9) with PHP Version 5.2.11 on Windows XP.
我已安装APC(版本3.0.19)
I have APC installed (Version 3.0.19)
我可以运行PHP脚本来证明apc正常工作.但是,当我尝试在symfony操作中使用APC调用时,出现此错误(在apache error.log文件中):
I can run PHP script to prove that apc is working correctly (works). However, when I try to use APC calls in a symfony action, I get this error (in the apache error.log file):
[apc-error]无法重新声明sfconfig类
[apc-error] Cannot redeclare class sfconfig
这会立即使Apache崩溃.
Which promptly crashes Apache.
我尝试使用Symfony sfAPCCache包装器,然后直接调用apc_ *函数-结果是相同的.有人知道为什么会这样吗?
I tried using the Symfony sfAPCCache wrapper, and then directly calling the apc_* functions - the result is the same. Does anyone know why this is happening ?
推荐答案
检出这些线程:
http://pecl.php.net/bugs/bug.php ?id = 16860
http://old.nabble.com/APC-under -WinXP-crashes-td25872662.html
这篇关于无法重新声明类sfconfig的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!