mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-13 18:02:58 +00:00
Fix undefined properties deprecated in PHP 8.2
This commit is contained in:
parent
c99e38b7c9
commit
797351cd63
@ -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.
|
||||
*
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user