mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 10:15:14 +00:00
make SSH2::exec behave as expected
SSH2::exec used to behave differently when false was given as callback, this has been changed in the method signature to be nullable but not reflected in the code
This commit is contained in:
parent
0b497cdbe3
commit
d76cb81244
@ -2623,7 +2623,7 @@ class SSH2
|
||||
|
||||
$this->channel_status[self::CHANNEL_EXEC] = MessageType::CHANNEL_DATA;
|
||||
|
||||
if ($callback === false || $this->in_request_pty_exec) {
|
||||
if ($callback === null || $this->in_request_pty_exec) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user