In CMemCache.php file, near line 84, the init method of CMemCache,
the arguments order of addServer is different from the PHP official site documentation.
public function init()
{
parent::init();
$servers=$this->getServers();
$cache=$this->getMemCache();
if(count($servers))
{
foreach($servers as $server)
{
if($this->useMemcached)
$cache->addServer($server->host,$server->port,$server->weight);
else
$cache->addServer($server->host,$server->port,$server->persistent,$server->weight,$server->timeout,$server->status); //NOTICE!: the arguments of addServer method, the retry_interval is missed.
}
}
else
$cache->addServer('localhost',11211);
}
The documentation is like:
bool Memcache::addServer ( string $host [, int $port = 11211 [, bool $persistent [, int $weight [, int $timeout [, int $retry_interval [, bool $status [, callable $failure_callback [, int $timeoutms ]]]]]]]] )
P.S.
I am using the version 1.1.8 and 1.1.12.