|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-11-14 06:07 UTC] krakjoe@php.net
-Assigned To:
+Assigned To: seander
[2017-02-06 07:16 UTC] mhagstrand at gmail dot com
[2017-02-06 19:45 UTC] langemeijer@php.net
[2017-02-06 19:58 UTC] langemeijer@php.net
-Assigned To: seander
+Assigned To: langemeijer
[2017-02-11 22:05 UTC] mhagstrand at gmail dot com
[2017-03-02 20:19 UTC] langemeijer@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 21:00:01 2025 UTC |
Description: ------------ I tried it with: 1) libssh2-1.5.0 - libssh2-1.8.0 2) pecl-networking-ssh2-master (ver 1.0) Test script: --------------- <?php $host = '***HOST***'; $port = '***PORT***'; $username = '***USERNAME***'; $password = '***PASS***'; $conn_id = ssh2_connect($host, $port); if (!ssh2_auth_password($conn_id, $username, $password)) { echo "Invalid auth\n"; exit; } echo "auth OK\n"; $stream = ssh2_exec($conn_id, "uname -a" . PHP_EOL); if (!is_resource($stream)) { echo 'Invalid command'."\n"; exit; } echo "exec OK\n"; stream_set_blocking($stream, true); $response = stream_get_contents($stream); echo "response OK\n"; Expected result: ---------------- auth OK exec OK response OK Actual result: -------------- auth OK exec OK Segmentation fault (core dumped)