|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-05-26 07:06 UTC] skissane at iips dot mq dot edu dot au
Description:
------------
Trying to use Unix98 pty's with proc_open gives error " pty pseudo terminal is not support on this system in ". But, /dev/ptmx exists, and devpts is mounted on /dev/pts!
PHP configuration:
'./configure' '--enable-cli' '--disable-cgi' '--with-xsl' '--prefix=/usr/local/php-5.0.4/' '--with-dba' '--with-cdb' '--with-mssql=/usr/local'
Reproduce code:
---------------
<?php
// Create a pseudo terminal for the child process
$descriptorspec = array(
0 => array("pty"),
1 => array("pty"),
2 => array("pty")
);
$process = proc_open("ls -l /", $descriptorspec, $pipes);
if (is_resource($process)) {
echo "OK!";
}
else {
echo "FAIL!";
}
?>
Expected result:
----------------
OK!
Actual result:
--------------
Warning: proc_open(): pty pseudo terminal is not support on this system in /home/skissane/php-5.0.4/ptytest.php on line 8
FAIL!
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 01:00:02 2025 UTC |
Sadly, but "bug" still present. This code can be used for pty checking: #include <stdio.h> #include <termios.h> #include <unistd.h> #include <pty.h> int main(int argc, char** argv) { int master; int slave; return openpty(&master,&slave,NULL,NULL,NULL); }