mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 11:37:33 +00:00
Use call_user_func, as this will work on PHP < 5.4, whereas $callback() does not
This commit is contained in:
parent
8b068b1df0
commit
97d1e75a51
@ -2258,7 +2258,7 @@ class Net_SSH2
|
||||
return false;
|
||||
default:
|
||||
if (is_callable($callback)) {
|
||||
$callback($temp);
|
||||
call_user_func($callback, $temp);
|
||||
} else {
|
||||
$output.= $temp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user