From 97d1e75a51d1754d243d3be36aa22ad63b28bdb2 Mon Sep 17 00:00:00 2001 From: Nicky Gerritsen Date: Wed, 5 Mar 2014 15:44:17 +0100 Subject: [PATCH] Use call_user_func, as this will work on PHP < 5.4, whereas $callback() does not --- phpseclib/Net/SSH2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 2fddb68a..d3bc7c60 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -2258,7 +2258,7 @@ class Net_SSH2 return false; default: if (is_callable($callback)) { - $callback($temp); + call_user_func($callback, $temp); } else { $output.= $temp; }