Symfony / PHP7 APC -> APCu

前端 未结 4 2296
逝去的感伤
逝去的感伤 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:40

    On MacOS, using pecl is a one-command solution (after a brew install php@7.1) :

    pecl install apcu

    downloading apcu-5.1.17.tgz ...
    [...]
    Installing '/usr/local/Cellar/php@7.1/7.1.27/pecl/20160303/apcu.so'
    install ok: channel://pecl.php.net/apcu-5.1.17
    Extension apcu enabled in php.ini

提交回复
热议问题