Symfony / PHP7 APC -> APCu

user3703456 picture user3703456 · Dec 30, 2015 · Viewed 11.8k times · Source

I have issue with PHP7 and APCu. After installation I got this error:

Fatal error: Call to undefined function Doctrine\Common\Cache\apc_fetch()

APCu is 100% enabled, I see it in the phpinfo(); And when I try apcu_fetch() it works.

How to use APCu in Symfony 2.8?

Answer

François Breton picture François Breton · Jun 9, 2016

You can update Doctrine, at least its doctrine/cache dependency (>= 1.6) APCu now supported :-)