|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #80392 Can't close stdin of ssh2 stream
Submitted: 2020-11-20 19:42 UTC Modified: 2021-01-14 13:16 UTC
From: calvin at cmpct dot info Assigned: cmb (profile)
Status: Closed Package: ssh2 (PECL)
PHP Version: 7.4.12 OS: Fedora 33
Private report: No CVE-ID: None
 [2020-11-20 19:42 UTC] calvin at cmpct dot info
If the program being called takes input over stdin, the user can't close the stdin stream. This makes it impossible to use these kinds of programs over the ssh2 module.

The solution involves a thin wrapper around libssh2_channel_send_eof.

PR is here: and diff attached for convenience. A test case is included.


ssh2-send-eof (last revision 2020-11-20 19:42 UTC by calvin at cmpct dot info)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-01-14 13:16 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Dec 03 11:01:27 2023 UTC