PHP with APC: Fatal errors: Cannot redeclare class

后端 未结 7 2011
甜味超标
甜味超标 2020-12-24 07:57

Since I installed APC for PHP with PECL I get sometimes these errors: Cannot redeclare class xxx

xxx changes from time to time. I could disable APC but

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-24 08:11

    I had the same problem with a bunch of PHP libraries as soon as I enabled APC. After a lot of hair pulling I found that setting apc.include_once_override = 0 cleared things up. Still monitoring but haven't had a the problem re-occur (before that I was able to induce the error by clearing the apc cache).

提交回复
热议问题