From:             skissane at iips dot mq dot edu dot au
Operating system: Linux
PHP version:      5.0.4
PHP Bug Type:     Program Execution
Bug description:   pty pseudo terminal is not support on this system in 

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!


-- 
Edit bug report at http://bugs.php.net/?id=33147&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33147&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33147&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33147&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33147&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33147&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33147&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33147&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33147&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33147&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33147&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33147&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33147&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33147&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33147&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33147&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33147&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33147&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33147&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33147&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33147&r=mysqlcfg

Reply via email to