调用未定义函数 apc_clear_cache()

Call to undefined function apc_clear_cache()

我在 Ubuntu 16.04 上使用新安装的 PHP 7.0 的 Phalcon PHP 框架。我还通过 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 ......

ControllerBase.php 的第 97 行:

apc_clear_cache();

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 没有正常工作。