public function stream_lock($operation)
    {
        if ($this->fileHandle === null) {
            return false;
        }
        self::restore();
        $success = flock($this->fileHandle, $operation);
        self::register();
        return $success;
    }
public function stream_lock($operation)
    {
        if ($this->fileHandle === null) {
            return false;
        }
        self::restore();
        $success = flock($this->fileHandle, $operation);
        self::register();
        return $success;
    }
public function stream_lock ( $ operation ) { if ( $ this -> fileHandle === null ) { return false ; } self :: restore ( ) ; $ success = flock ( $ this -> fileHandle , $ operation ) ; self :: register ( ) ; return $ success ; }
Advisory file locking

@param int $operation
@return bool
Advisory file locking