code: protected function alloc() {
          if (null !== $this->memory) {
              return;
          }
          $this->memory = shm_attach(ftok(__FILE__, $this->identifier), $this->segmentSize, 0644);
      }
docs: Memory alloc