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: 2020-04-30 08:30 UTC
From: amrood dot admin at gmail dot com Assigned:
Status: Duplicate Package: Filesystem function related
PHP Version: 5.4.19 OS: CentOS 6
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: amrood dot admin at gmail dot com
New email:
PHP Version: OS:

 

 [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

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: Sat Dec 21 15:01:29 2024 UTC