Doctrine未定义函数apc_fetch [英] Doctrine undefined function apc_fetch

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

问题描述

我使用的是本教程提供了有关如何设置CodeIgniter和Doctrine的详细说明。我使用CodeIgniter 2.1.0和Doctrine 2.2.1,但是我收到这个错误:

I'm using this tutorial, which gives a detail explanation about how to set up CodeIgniter and Doctrine. I'm using CodeIgniter 2.1.0 and Doctrine 2.2.1, but I get this error:


致命错误:调用未定义的函数 Doctrine\Common\Cache\apc_fetch() in /Applications/XAMPP/xamppfiles/htdocs/emma_watson_shrine/application/libraries/Doctrine/Common/Cache/ApcCache.php on第52行

Fatal error: Call to undefined function Doctrine\Common\Cache\apc_fetch() in /Applications/XAMPP/xamppfiles/htdocs/emma_watson_shrine/application/libraries/Doctrine/Common/Cache/ApcCache.php on line 52

你能帮助我吗?

推荐答案

您需要为PHP启用APC扩展。

You need to enable the APC extension for PHP.

按照指南。

或者,您可以使用不同的缓存驱动程序,如内存缓存,并更改根据这个原则配置。

Alternatively, you could use a different caching driver, like memcache, and change the Doctrine config in accordance to that.

检查 doctrine文档替代缓存驱动程序。也许最简单的解决方案是在开发中使用 ArrayCache

Check the doctrine documentation for alternate caching drivers. Perhaps the simplest solution would be to use ArrayCache in development.

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

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