mirror of
https://github.com/danog/tgseclib.git
synced 2024-12-04 18:48:37 +01:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
9814140055
@ -140,6 +140,10 @@ class SSH2
|
|||||||
* Returns when a string matching the regular expression $expect is found
|
* Returns when a string matching the regular expression $expect is found
|
||||||
*/
|
*/
|
||||||
const READ_REGEX = 2;
|
const READ_REGEX = 2;
|
||||||
|
/**
|
||||||
|
* Returns when a string matching the regular expression $expect is found
|
||||||
|
*/
|
||||||
|
const READ_NEXT = 3;
|
||||||
/**
|
/**
|
||||||
* Make sure that the log never gets larger than this
|
* Make sure that the log never gets larger than this
|
||||||
*/
|
*/
|
||||||
@ -2813,6 +2817,10 @@ class SSH2
|
|||||||
|
|
||||||
$channel = $this->_get_interactive_channel();
|
$channel = $this->_get_interactive_channel();
|
||||||
|
|
||||||
|
if ($mode == self::READ_NEXT) {
|
||||||
|
return $this->_get_channel_packet($channel);
|
||||||
|
}
|
||||||
|
|
||||||
$match = $expect;
|
$match = $expect;
|
||||||
while (true) {
|
while (true) {
|
||||||
if ($mode == self::READ_REGEX) {
|
if ($mode == self::READ_REGEX) {
|
||||||
|
Loading…
Reference in New Issue
Block a user