2016-05-13 104 views
-1

我在我的項目中使用memcahced,我知道memcached是安裝在我的系統上。但是當我看到那個文件我收到此錯誤memchache嚴格標準mac上的錯誤

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); 
    } 

不知道什麼在

回答

0

只是比較去,錯誤說,這想要:

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

您有:

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

儘量消除差異

+0

那不是它。我已經嘗試過,已經 – Autolycus

+0

@Autolycus是的,當然,你應該通過額外的第四個參數給父母 –

+0

我試過了... ...沒有工作 – Autolycus