将APC添加到Symfony项目会导致致命错误

时间:2013-09-08 22:12:28

标签: php symfony doctrine-orm apc

Symfony非常新,如果答案显而易见,请道歉。我正在尝试将APC添加到项目中以查看它是否可以提高性能。我在Windows 7 / Windows 8(安装在USB上)上使用easyphp运行symfony。 APC安装在ext文件夹中,并添加到php.ini文件中:

extension=php_apc.dll

然后在文件末尾:

[APC]
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 128M
apc.max_file_size = 5M
apc.stat = 1

php可以正常使用这些设置。但是,当我现在尝试加载我的Symfony项目时,我收到以下错误:

FatalErrorException: Compile Error: Cannot redeclare class
Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain in 
F:\EasyPHP\data\localweb\projects\SymfonyProj\vendor\doctrine\common\lib\Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain.php line 36

不确定我的缓存是否设置错误或者我在某处错过了一些配置选项?

0 个答案:

没有答案
相关问题