From:             joe at asial dot co dot jp
Operating system: ALL
PHP version:      5.1.6
PHP Bug Type:     *Compile Issues
Bug description:  There is no way to use Unix98 pty on proc_open()

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 bug report at http://bugs.php.net/?id=39224&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39224&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39224&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39224&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39224&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39224&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39224&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39224&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39224&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39224&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39224&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39224&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39224&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39224&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39224&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39224&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39224&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39224&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39224&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39224&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39224&r=mysqlcfg

Reply via email to