Symfony / PHP7 APC -> APCu

前端 未结 4 2243
逝去的感伤
逝去的感伤 2021-02-19 19:44

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

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

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-19 20:30

    This answer is obsolet. The correct answer is the one from François Breton.

    In PHP 7 you have to add an additional module to your PHP setup: apc.so This is a module that enables backward compability to apc for apcu. This is kind of confusing...

    See http://php.net/manual/de/apcu.installation.php for more info.

    If you are using packages from https://deb.sury.org/ (ondrej ppa), you can install it via apt-get install php-apcu-bc.

提交回复
热议问题