From:             ivan dot enderlin at hoa-project dot net
Operating system: 
PHP version:      Irrelevant
Package:          Streams related
Bug Type:         Feature/Change Request
Bug description:Add PTY support

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

-- 
Edit bug report at https://bugs.php.net/bug.php?id=64150&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64150&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64150&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64150&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64150&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64150&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64150&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64150&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64150&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64150&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64150&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64150&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64150&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64150&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64150&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64150&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64150&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64150&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64150&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64150&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64150&r=mysqlcfg

Reply via email to