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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cmb@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

Pull requests:

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC