php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #63702 Add shell resize capability
Submitted: 2012-12-06 00:15 UTC Modified: -
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: aaron at servergrove dot com Assigned:
Status: Open Package: ssh2 (PECL)
PHP Version: 5.3.19 OS: CentOS 6.3
Private report: No CVE-ID: None
 [2012-12-06 00:15 UTC] aaron at servergrove dot com
Description:
------------
I would like the ability to issue a resize to an existing shell connection 
through a PHP function call.


Patches

patch.63702 (last revision 2014-01-08 07:55 UTC by aaron at servergrove dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-09 10:12 UTC] langemeijer@php.net
It's is very possible to do. Our underlying library libssh2 already provides a method 
that implements this: http://www.libssh2.org/libssh2_channel_request_pty_size.html
 [2012-12-12 15:15 UTC] aaron at servergrove dot com
I would be very happy to do this myself and submit a patch, but despite knowing C 
quite well, I am quite unfamiliar with PHP extension development.  If there are 
some good resources to help me get up and going with your project, feel free to 
let me know and I will take a crack at it.  Thanks again.
 [2014-01-08 07:59 UTC] aaron at servergrove dot com
About 1 year on and I revisited this to add this feature myself.  If this project is no longer maintained I would be interested in possibly taking over maintenance of it.  Please let me know if there is anything further needed for the submitted patch to be incorporated into the extension.

I did not include any tests as I saw there were none for the existing shell stream.  If I am in error, I will happily submit a patch with tests for my change.  Cheers.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 04 08:01:29 2024 UTC