|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39224 There is no way to use Unix98 pty on proc_open()
Submitted: 2006-10-21 21:20 UTC Modified: 2015-08-04 17:43 UTC
From: joe at asial dot co dot jp Assigned: wez (profile)
Status: Closed Package: Unknown/Other Function
PHP Version: 5.1.6 OS: ALL
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.
Block user comment
Status: Assign to:
Bug Type:
From: joe at asial dot co dot jp
New email:
PHP Version: OS:


 [2006-10-21 21:20 UTC] joe at asial dot co dot jp
I cannot compile with support for Unix98 pty.

Following is source code from ext/standard/proc_open.c line 64 to 68.

# include <sys/ioctl.h>
# include <termios.h>
# define PHP_CAN_DO_PTS 1

I think that '#if 0 && HAVE_PTSNAME ...' is wrong, '#if HAVE_PTSNAME ...' is right.

Reproduce code:
$descriptorspec = array(
  0 => array("pty"),
  1 => array("pty"),
  2 => array("pty")

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

$process = proc_open('php', $descriptorspec, $pipes, $cwd, $env);

Expected result:
No error.

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-21 21:34 UTC]
It has been disabled by Wez intentionally (unfortunately I don't know the exact reason why).
Assigned to him, maybe he can add some comments.
 [2006-10-22 00:15 UTC]
It was disabled because Sascha didn't think the configure check was good enough.
 [2006-10-24 08:56 UTC] joe at asial dot co dot jp
Following is a part of
"PHP 5 introduces pty support for systems with Unix98 ptys. "

If it is not possible to use pty, should we change the document? Or, is there any plan to modify the configure script?
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Oct 02 02:01:25 2023 UTC