Merge branch '2.0' into 3.0

This commit is contained in:
terrafrost 2021-08-24 20:24:50 -05:00
commit 1b90375231

View File

@ -648,16 +648,6 @@ class SFTP extends SSH2
$this->canonicalize_paths = true;
}
/**
* Enable arbitrary length packets
*
* @access public
*/
function enableArbitraryLengthPackets()
{
$this->allow_arbitrary_length_packets = true;
}
/**
* Enable path canonicalization
*
@ -668,6 +658,26 @@ class SFTP extends SSH2
$this->canonicalize_paths = false;
}
/**
* Enable arbitrary length packets
*
* @access public
*/
public function enableArbitraryLengthPackets()
{
$this->allow_arbitrary_length_packets = true;
}
/**
* Disable arbitrary length packets
*
* @access public
*/
public function disableArbitraryLengthPackets()
{
$this->allow_arbitrary_length_packets = false;
}
/**
* Returns the current directory name
*