function _read_put_responses($i)
    {
        while ($i--) {
            $response = $this->_get_sftp_packet();
            if ($this->packet_type != NET_SFTP_STATUS) {
                user_error('Expected SSH_FXP_STATUS', E_USER_NOTICE);
                return false;
            }

            extract(unpack('Nstatus', $this->_string_shift($response, 4)));
            if ($status != NET_SFTP_STATUS_OK) {
                $this->_logError($response, $status);
                break;
            }
        }

        return $i < 0;
    }
function _read_put_responses($i)
    {
        while ($i--) {
            $response = $this->_get_sftp_packet();
            if ($this->packet_type != NET_SFTP_STATUS) {
                user_error('Expected SSH_FXP_STATUS', E_USER_NOTICE);
                return false;
            }

            extract(unpack('Nstatus', $this->_string_shift($response, 4)));
            if ($status != NET_SFTP_STATUS_OK) {
                $this->_logError($response, $status);
                break;
            }
        }

        return $i < 0;
    }
function _read_put_responses ( $ i ) { while ( $ i -- ) { $ response = $ this -> _get_sftp_packet ( ) ; if ( $ this -> packet_type != NET_SFTP_STATUS ) { user_error ( 'Expected SSH_FXP_STATUS' , E_USER_NOTICE ) ; return false ; } extract ( unpack ( 'Nstatus' , $ this -> _string_shift ( $ response , 4 ) ) ) ; if ( $ status != NET_SFTP_STATUS_OK ) { $ this -> _logError ( $ response , $ status ) ; break ; } } return $ i < 0 ; }
Reads multiple successive SSH_FXP_WRITE responses

Sending an SSH_FXP_WRITE packet and immediately reading its response isn't as efficient as blindly sending out $i
SSH_FXP_WRITEs, in succession, and then reading $i responses.

@param Integer $i
@return Boolean
@access private
Reads multiple successive SSH_FXP_WRITE responses