From: Vincent Vanwaelscappel Date: Thu, 26 Jan 2023 14:11:33 +0000 (+0100) Subject: wip #5700 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=01812dbc0cde995fc6b3634befb7cd351b84001a;p=cubist_net.git wip #5700 @0.25 --- diff --git a/src/SSH2.php b/src/SSH2.php index 27875ac..8a6af71 100644 --- a/src/SSH2.php +++ b/src/SSH2.php @@ -169,8 +169,8 @@ class SSH2 { stream_set_blocking($errorStream, true); stream_set_blocking($stream, true); - $stream_size_limit = 100000; - $res=['output'=>fread($stream,$stream_size_limit),'error'=>fread($errorStream,$stream_size_limit)]; + $stream_size_limit = 100000000; + $res = ['output' => stream_get_contents($stream, $stream_size_limit), 'error' => stream_get_contents($errorStream, $stream_size_limit)]; // Close the streams fclose($errorStream); diff --git a/src/Transfer/Driver.php b/src/Transfer/Driver.php new file mode 100644 index 0000000..cdb6b1b --- /dev/null +++ b/src/Transfer/Driver.php @@ -0,0 +1,7 @@ +