php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #64150 Add PTY support
Submitted: 2013-02-05 08:00 UTC Modified: -
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:0 of 0 (0.0%)
From: ivan dot enderlin at hoa-project dot net Assigned:
Status: Open Package: Streams related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ivan dot enderlin at hoa-project dot net
New email:
PHP Version: OS:

 

 [2013-02-05 08:00 UTC] ivan dot enderlin at hoa-project dot net
Description:
------------
Hello,

Pseudoterminals (aka PTY) are very useful in many cases (please, read [1] [2] [3]). PHP has a “disabled” implementation of PTY (please see discussion [4] and you will find relevant links inside).

I wonder if technical issues encountered in the past are always true nowadays. If it does not, it would be a very great enhancement!



[1] http://en.wikipedia.org/wiki/Pseudo_terminal
[2] http://kernel.org/doc/man-pages/online/pages/man7/pty.7.html
[3] http://www.freebsd.org/cgi/man.cgi?query=pty
[4] http://marc.info/?l=php-internals&m=135954314930310

Test script:
---------------
<?php

$p = proc_open(
    'php',
    [0 => ['pty', 'r'], 1 => ['pty', 'w']],
    $pipes
);

Actual result:
--------------
Warning: proc_open(): pty pseudo terminal not supported on this system in /tmp/foo.php on line 7

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 05:01:25 2019 UTC