php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80729 ssh2_shell() streams are not stream_select()able
Submitted: 2021-02-10 17:41 UTC Modified: 2021-02-10 17:41 UTC
From: cmb@php.net Assigned: cmb (profile)
Status: Closed Package: ssh2 (PECL)
PHP Version: 7.4Git-2021-02-10 (Git) OS: Windows
Private report: No CVE-ID: None
 [2021-02-10 17:41 UTC] cmb@php.net
Description:
------------
On Windows, stream_select() fails on streams returned by
ssh2_shell().

Test script:
---------------
ext/ssh2/tests/ssh2_stream_select.phpt

Expected result:
----------------
bool(true)
resource(6) of type (stream)
Linux ELEPHPANT 4.4.0-19041-Microsoft #488-Microsoft Mon Sep 01 13:43:00 PST 2020 x86_64
…
echo "howdy"

cmb@ELEPHPANT:~$ echo "howdy"
howdy
cmb@ELEPHPANT:~$ 
cmb@ELEPHPANT:~$ bool(true)

Actual result:
--------------
bool(true)
resource(6) of type (stream)

Warning: stream_select(): unable to select [2]: No such file or directory (max_fd=660) in %s on line %d
bool(true)


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-02-10 17:41 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2021-02-10 17:55 UTC] cmb@php.net
The following pull request has been associated:

Patch Name: Fix #80729: ssh2_shell() streams are not stream_select()able
On GitHub:  https://github.com/php/pecl-networking-ssh2/pull/51
Patch:      https://github.com/php/pecl-networking-ssh2/pull/51.patch
 [2021-02-24 21:08 UTC] langemeijer@php.net
Automatic comment on behalf of casper.langemeijer@procurios.nl
Revision: http://git.php.net/?p=pecl/networking/ssh2.git;a=commit;h=27ca5416be564f8072359b087644bb69d7546bc5
Log: Merge pull request #51: Fix #80729: ssh2_shell() streams are not stream_select()able
 [2021-02-24 21:08 UTC] langemeijer@php.net
-Status: Assigned +Status: Closed
 [2021-02-24 21:09 UTC] langemeijer@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=pecl/networking/ssh2.git;a=commit;h=478edd029a7cce7fcbec452ee640eb01a20bcbad
Log: Fix #80729: ssh2_shell() streams are not stream_select()able
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Apr 14 16:01:24 2021 UTC