|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-21 21:34 UTC] tony2001@php.net
[2006-10-22 00:15 UTC] wez@php.net
[2006-10-24 08:56 UTC] joe at asial dot co dot jp
[2015-08-04 17:43 UTC] bishop@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 20:00:02 2025 UTC |
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