mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-26 20:24:39 +01:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
97f0b37bd5
@ -3377,7 +3377,9 @@ class SSH2
|
||||
}
|
||||
|
||||
$this->channel_status[$channel] = NET_SSH2_MSG_CHANNEL_CLOSE;
|
||||
return true;
|
||||
if ($client_channel == $channel) {
|
||||
return true;
|
||||
}
|
||||
case NET_SSH2_MSG_CHANNEL_EOF:
|
||||
break;
|
||||
default:
|
||||
|
@ -710,5 +710,19 @@ class Functional_Net_SFTPUserStoryTest extends PhpseclibFunctionalTestCase
|
||||
$this->assertFalse($sftp->is_writable('nonexistantfile.ext'));
|
||||
$this->assertFalse($sftp->is_writeable('nonexistantfile.ext'));
|
||||
$this->assertFalse($sftp->is_readable('nonexistantfile.ext'));
|
||||
|
||||
return $sftp;
|
||||
}
|
||||
|
||||
/**
|
||||
* @depends testReadableWritable
|
||||
* @group github999
|
||||
*/
|
||||
public function testExecNlist($sftp)
|
||||
{
|
||||
$sftp->enablePTY();
|
||||
$sftp->exec('ping google.com -c 5');
|
||||
sleep(5);
|
||||
$sftp->nlist();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user