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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
17 - 12 = ?
Subscribe to this entry?

 
 [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: Sat Apr 27 06:01:30 2024 UTC