mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +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;
|
return false;
|
||||||
default:
|
default:
|
||||||
if (is_callable($callback)) {
|
if (is_callable($callback)) {
|
||||||
$callback($temp);
|
call_user_func($callback, $temp);
|
||||||
} else {
|
} else {
|
||||||
$output.= $temp;
|
$output.= $temp;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user