php.net |  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
Description:
------------
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: https://github.com/php/pecl-networking-ssh2/pull/45 and diff attached for convenience. A test case is included.


Patches

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

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-01-14 13:16 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 10:01:26 2024 UTC