public function getServerStatus($host, $port = 11211) { if ($this->logging) { $start = microtime(true); $name = 'getServerStatus'; $arguments = array($host, $port); } list($_host, $_port) = array($host, $port); $result = parent::getServerStatus($_host, $_port); list($host, $port) = array($_host, $_port); if ($this->logging) { $time = microtime(true) - $start; $this->calls[] = (object) compact('start', 'time', 'name', 'arguments', 'result'); } return $result; }