php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #65537 There is no way to use Unix98 pty on proc_open()
Submitted: 2013-08-24 12:23 UTC Modified: -
From: amrood dot admin at gmail dot com Assigned:
Status: Open Package: Filesystem function related
PHP Version: 5.4.19 OS: CentOS 6
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-08-24 12:23 UTC] amrood dot admin at gmail dot com
Description:
------------
Hi,

I tried to use pty terminal type with PHP proc_open() function but could not 
success and got following message:

PHP Warning:  proc_open(): pty pseudo terminal not supported on this system in 
xxxx.php on line xx

I saw it was raised somewhere in 2006 with Bug #39224 but not sure why it was not 
fixed. 

If you can give any clue why it was not fixed? Any security or any other issue? I 
can see this code is still available in proc_open.c


Any help will be highly appreciated.

Kind regards
Mohtashim



Test script:
---------------
$descriptorspec = array(
  0 => array("pty"),
  1 => array("pty"),
  2 => array("pty")
);

$cwd = '/tmp'; 
$env = array('some_option' => 'aeiou');

Expected result:
----------------
No error.

Actual result:
--------------
PHP Warning:  proc_open(): pty pseudo terminal not supported on this system in 
xxxx.php on line xx

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Fri Oct 19 00:01:25 2018 UTC