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

查看:360
本文介绍了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()在/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.

指南。

或者,您可以使用不同的缓存驱动程序,如memcache,并更改Doctrine配置

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天全站免登陆