简体   繁体   English

调用未定义的函数 apc_clear_cache()

[英]Call to undefined function apc_clear_cache()

I am using Phalcon PHP framework with newly installed PHP 7.0 on Ubuntu 16.04.我在 Ubuntu 16.04 上使用 Phalcon PHP 框架和新安装的 PHP 7.0。 I also installed apcu and apcu_bc via pecl and I am getting 500 internal error with Apache logging this error:我还通过 pecl 安装了 apcu 和 apcu_bc,我收到 500 内部错误,Apache 记录此错误:

error:  Uncaught Error: Call to undefined function apc_clear_cache() in /var/www/html/project/app/controllers/ControllerBase.php:97 ......

line 97 of ControllerBase.php: ControllerBase.php 的第 97 行:

apc_clear_cache();

phpinfo(): phpinfo():

apcu
APCu Support    Enabled
Version 5.1.5
APCu Debugging  Enabled
MMAP Support    Enabled
MMAP File Mask  no value
Serialization Support   php
Build Date  Jul 9 2016 17:22:04

好的,解决方案是将所有 apc_* 函数重命名为 apcu_* ...我猜 apcu_bc 无法正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM