简体   繁体   中英

memchache strict standards error on mac

I am using memcahced in my project and I know memcached is install on my system. However I am getting this error

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

When I look at that file

I have this there

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

not sure whats going on

just compare, error says, it wants:

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

you have:

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

try to eliminate difference

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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