Use call_user_func, as this will work on PHP < 5.4, whereas $callback() does not

This commit is contained in:
Nicky Gerritsen 2014-03-05 15:44:17 +01:00
parent 8b068b1df0
commit 97d1e75a51

View File

@ -2258,7 +2258,7 @@ class Net_SSH2
return false;
default:
if (is_callable($callback)) {
$callback($temp);
call_user_func($callback, $temp);
} else {
$output.= $temp;
}