public function open()
    {
        if (is_resource($this->stream)) {
            throw new ResourceException(
                'The temporary file is already open.'
            );
        }

        $this->stream = fopen($this->lock_filename, 'w+b');
    }
public function open()
    {
        if (is_resource($this->stream)) {
            throw new ResourceException(
                'The temporary file is already open.'
            );
        }

        $this->stream = fopen($this->lock_filename, 'w+b');
    }
public function open ( ) { if ( is_resource ( $ this -> stream ) ) { throw new ResourceException ( 'The temporary file is already open.' ) ; } $ this -> stream = fopen ( $ this -> lock_filename , 'w+b' ) ; }
Open the streaming

@return void
Open the streaming