protected function readmemory()
{
if (empty($this->mem)) {
$auto_unlocker = NULL;
if (!$this->sem->get_access_read($auto_unlocker)) {
$this->ReportError('can not acquire readers access', __LINE__);
return false;
}
$this->mem = unserialize(trim(shmop_read($this->shm, 0, shmop_size($this->shm))));
$this->sem->release_access_read($auto_unlocker);
}
return true;
}