src/shmop.php
protected function read()
    {
        if ($this->exists()) {
            $id = shmop_open($this->id, "a", 0, 0);
            if (!$id) {
                return false;
            }

            $data = shmop_read($id, 0, shmop_size($id));
            if (!$data) {
                return false;
            }

            $data = $this->unpack($data);
            shmop_close($id);

            return $data;
        }

        return false;
    }
protected function read()
    {
        if ($this->exists()) {
            $id = shmop_open($this->id, "a", 0, 0);
            if (!$id) {
                return false;
            }

            $data = shmop_read($id, 0, shmop_size($id));
            if (!$data) {
                return false;
            }

            $data = $this->unpack($data);
            shmop_close($id);

            return $data;
        }

        return false;
    }
protected function read ( ) { if ( $ this -> exists ( ) ) { $ id = shmop_open ( $ this -> id , "a" , 0 , 0 ) ; if ( ! $ id ) { return false ; } $ data = shmop_read ( $ id , 0 , shmop_size ( $ id ) ) ; if ( ! $ data ) { return false ; } $ data = $ this -> unpack ( $ data ) ; shmop_close ( $ id ) ; return $ data ; } return false ; }
Read data from shared memory block
@return bool|mixed
Read data from shared memory block