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: 2020-04-30 08:30 UTC
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: Duplicate Package: Streams related
PHP Version: Irrelevant OS:
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: 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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-04-30 08:30 UTC] nikic@php.net
-Status: Open +Status: Duplicate
 [2020-04-30 08:30 UTC] nikic@php.net
Closing this as a duplicate of bug #33147.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 27 16:01:27 2024 UTC