Bug #39224 [Csd]: There is no way to use Unix98 pty on proc_open()

From: Date: Tue, 04 Aug 2015 17:43:11 +0000
Subject: Bug #39224 [Csd]: There is no way to use Unix98 pty on proc_open()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194954@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=39224&edit=1 ID: 39224 Updated by: bishop@php.net Reported by: joe at asial dot co dot jp Summary: There is no way to use Unix98 pty on proc_open() Status: Closed Type: Bug Package: Unknown/Other Function Operating System: ALL PHP Version: 5.1.6 Assigned To: wez Block user comment: N Private report: N New Comment: See also https://bugs.php.net/bug.php?id=33147 Previous Comments: ------------------------------------------------------------------------ [2006-10-24 08:56:25] joe at asial dot co dot jp Following is a part of http://www.php.net/proc_open. "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? ------------------------------------------------------------------------ [2006-10-22 00:15:40] wez@php.net It was disabled because Sascha didn't think the configure check was good enough. ------------------------------------------------------------------------ [2006-10-21 21:34:42] tony2001@php.net 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-21 21:20:02] joe at asial dot co dot jp Description: ------------ I cannot compile with support for Unix98 pty. Following is source code from ext/standard/proc_open.c line 64 to 68. #if 0 && HAVE_PTSNAME && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_SYS_IOCTL_H && HAVE_TERMIOS_H # include <sys/ioctl.h> # include <termios.h> # define PHP_CAN_DO_PTS 1 #endif 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=39224&edit=1

« previous php.bugs (#194954) next »