带有APCu的PHP7-调用未定义的函数apc_fetch() [英] PHP7 with APCu - Call to undefined function apc_fetch()

查看:366
本文介绍了带有APCu的PHP7-调用未定义的函数apc_fetch()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在PHP7中安装了APCu扩展

I have installed APCu extension in PHP7

但是我得到这个错误

Call to undefined function apc_fetch()

推荐答案

从PHP 7.0开始,APCu删除了与PHP 5.5和5.6中与APCu一起存在的APC完全向后兼容的选项.

Starting with PHP 7.0, APCu removed the option for full backwards compatibility with APC that existed with APCu in PHP 5.5 and 5.6.

您将需要在apcu顶部添加APCu向后兼容模块,以使其正常运行. ( https://pecl.php.net/package/apcu_bc )

You will need to add the APCu Backwards Compatiblity Module on top of apcu to make it work. (https://pecl.php.net/package/apcu_bc)

pecl install apcu_bc

这篇关于带有APCu的PHP7-调用未定义的函数apc_fetch()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆