Core/src/Batch/SysvConfigStorage.php
public function load()
    {
        $shmid = shm_attach($this->sysvKey, $this->shmSize, $this->perm);
        if ($shmid === false) {
            throw new \RuntimeException(
                'Failed to attach to the shared memory'
            );
        }
        if (! shm_has_var($shmid, self::VAR_KEY)) {
            $result = new JobConfig();
        } else {
            $result = shm_get_var($shmid, self::VAR_KEY);
        }
        shm_detach($shmid);

        if ($result === false) {
            throw new \RuntimeException(
                'Failed to deserialize data from shared memory'
            );
        }
        return $result;
    }
public function load()
    {
        $shmid = shm_attach($this->sysvKey, $this->shmSize, $this->perm);
        if ($shmid === false) {
            throw new \RuntimeException(
                'Failed to attach to the shared memory'
            );
        }
        if (! shm_has_var($shmid, self::VAR_KEY)) {
            $result = new JobConfig();
        } else {
            $result = shm_get_var($shmid, self::VAR_KEY);
        }
        shm_detach($shmid);

        if ($result === false) {
            throw new \RuntimeException(
                'Failed to deserialize data from shared memory'
            );
        }
        return $result;
    }
public function load ( ) { $ shmid = shm_attach ( $ this -> sysvKey , $ this -> shmSize , $ this -> perm ) ; if ( $ shmid === false ) { throw new \ RuntimeException ( 'Failed to attach to the shared memory' ) ; } if ( ! shm_has_var ( $ shmid , self :: VAR_KEY ) ) { $ result = new JobConfig ( ) ; } else { $ result = shm_get_var ( $ shmid , self :: VAR_KEY ) ; } shm_detach ( $ shmid ) ; if ( $ result === false ) { throw new \ RuntimeException ( 'Failed to deserialize data from shared memory' ) ; } return $ result ; }
Load a JobConfig from the storage.

@return JobConfig
@throws \RuntimeException when failed to attach to the shared memory or deserialization fails
Load a JobConfig from the storage .