2

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

1 回答 1

3

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

于 2016-07-10T11:07:22.707 回答