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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: calvin at cmpct dot info
New email:
PHP Version: OS:

 

 [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)

Pull Requests

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: Tue Oct 08 06:01:27 2024 UTC