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:
Christian R 2022-09-15 13:31:11 +03:00 committed by GitHub
parent 0b497cdbe3
commit d76cb81244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}