Fix undefined properties deprecated in PHP 8.2

This commit is contained in:
Alexander Vlasov 2022-12-22 12:29:59 +01:00 committed by terrafrost
parent c99e38b7c9
commit 797351cd63
2 changed files with 46 additions and 2 deletions

View File

@ -359,6 +359,38 @@ class Net_SFTP extends Net_SSH2
*/
var $partial_init = false;
/**
* http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-7.1
* the order, in this case, matters quite a lot - see \phpseclib3\Net\SFTP::_parseAttributes() to understand why
*
* @var array
* @access private
*/
var $attributes = array();
/**
* @var array
* @access private
*/
var $open_flags = array();
/**
* SFTPv5+ changed the flags up:
* https://datatracker.ietf.org/doc/html/draft-ietf-secsh-filexfer-13#section-8.1.1.3
*
* @var array
* @access private
*/
var $open_flags5 = array();
/**
* http://tools.ietf.org/html/draft-ietf-secsh-filexfer-04#section-5.2
* see \phpseclib\Net\SFTP::_parseLongname() for an explanation
*
* @var array
*/
var $file_types = array();
/**
* Default Constructor.
*

View File

@ -371,7 +371,7 @@ class Net_SSH1
* @var array
* @access private
*/
var $protocol_flag_log = array();
var $protocol_flags_log = array();
/**
* Message Log
@ -418,6 +418,18 @@ class Net_SSH1
*/
var $interactiveBuffer = '';
/**
* Current log size
*
* Should never exceed self::LOG_MAX_SIZE
*
* @see self::_send_binary_packet()
* @see self::_get_binary_packet()
* @var int
* @access private
*/
var $log_size;
/**
* Timeout
*
@ -1467,7 +1479,7 @@ class Net_SSH1
switch (NET_SSH1_LOGGING) {
case NET_SSH1_LOG_SIMPLE:
return $this->message_number_log;
return $this->protocol_flags_log;
break;
case NET_SSH1_LOG_COMPLEX:
return $this->_format_log($this->message_log, $this->protocol_flags_log);