mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00:00
Merge branch 'ssh2-fix-multi-channel-2.0' into ssh2-fix-multi-channel-master
This commit is contained in:
commit
8d16642469
@ -148,5 +148,25 @@ class Functional_Net_SSH2Test extends PhpseclibFunctionalTestCase
|
|||||||
$ssh->exec('ls -latr');
|
$ssh->exec('ls -latr');
|
||||||
$ssh->disablePTY();
|
$ssh->disablePTY();
|
||||||
$ssh->exec('pwd');
|
$ssh->exec('pwd');
|
||||||
|
|
||||||
|
return $ssh;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @depends testDisablePTY
|
||||||
|
* @group github1167
|
||||||
|
*/
|
||||||
|
public function testChannelDataAfterOpen($ssh)
|
||||||
|
{
|
||||||
|
$ssh->write("ping 127.0.0.1\n");
|
||||||
|
|
||||||
|
$ssh->enablePTY();
|
||||||
|
$ssh->exec('bash');
|
||||||
|
|
||||||
|
$ssh->write("ls -latr\n");
|
||||||
|
|
||||||
|
$ssh->setTimeout(1);
|
||||||
|
|
||||||
|
$ssh->read();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user