mac上的memchache严格标准错误

时间:2016-05-13 17:25:15

标签: php memcached homebrew

我在我的项目中使用memcahced,我知道memcached是在我的系统上安装的。但是我收到了这个错误

Strict standards: Declaration of CUSTOMMemcached::get() should be compatible with Memcached::get($key, $cache_cb = NULL, &$cas_token = NULL, &$udf_flags = NULL) in /Library/WebServer/Documents/includes/CUSTOMMemcached.inc on line 123

当我查看该文件时

我有这个

public function get($key, $cb = null, &$token = null){
        return parent::get($this->keyName($key), $cb, $token);
    }

不确定最新情况

1 个答案:

答案 0 :(得分:0)

只是比较,错误说,它想要:

get($key, $cache_cb = NULL, &$cas_token = NULL, &$udf_flags = NULL)
你有:

get($key, $cb = null,       &$token = null)

尝试消除差异