#33147 [Opn]: pty pseudo terminal is not support on this system
| From: | skissane at iips dot mq dot edu dot au | Date: | Mon, 20 Jun 2005 07:51:32 +0000 |
| Subject: | #33147 [Opn]: pty pseudo terminal is not support on this system | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80677@lists.php.net to get a copy of this message | ||
ID: 33147
User updated by: skissane at iips dot mq dot edu dot au
Reported By: skissane at iips dot mq dot edu dot au
Status: Open
-Bug Type: Feature/Change Request
+Bug Type: *Configuration Issues
Operating System: *
PHP Version: 5CVS-2005-05-27
New Comment:
This is not really a feature/change request -- the feature is already
supported in the code; the configure system just needs to be set up so
the support can be turned on/off.
Previous Comments:
------------------------------------------------------------------------
[2005-05-30 08:20:43] skissane at iips dot mq dot edu dot au
Updated test case: added SKIPIF (requires Michael Spector's
--enable-pty patch).
--TEST--
Bug #33147 (proc_open: basic test of Unix98 PTYs functionality)
--SKIPIF--
<?php
ob_start();
phpinfo();
$info = ob_get_contents();
ob_end_clean();
if (strpos($info,"--enable-pty") === FALSE) {
die("skip --enable-pty not specified\n");
}
?>
--FILE--
<?php
// Create a pseudo terminal for the child process
$descriptorspec = array(
0 => array("pty"),
1 => array("pty"),
2 => array("pty")
);
$process = proc_open("echo this is working", $descriptorspec, $pipes);
if (is_resource($process)) {
echo "OK\n";
while (!feof($pipes[1]))
echo fread($pipes[1],1024);
}
?>
--EXPECT--
OK
this is working
------------------------------------------------------------------------
[2005-05-30 03:07:59] skissane at iips dot mq dot edu dot au
Wez (or someone else with CVS comitter rights): why not just check
Michael Spector's patch into CVS?
http://www.mail-archive.com/internals@lists.php.net/msg14854.html.
That should close this issue. No more of your time required :)
------------------------------------------------------------------------
[2005-05-27 16:13:42] wez@php.net
This resistance is precisely the reason why the feature didn't make it.
Go wild, implement it yourself; I have a million other things that are
far more rewarding than putting up with this.
------------------------------------------------------------------------
[2005-05-27 15:01:38] derick@php.net
He might have an anal attitude, but he is right on the point where
commit messages should be descriptive, and not cryptic.
------------------------------------------------------------------------
[2005-05-27 13:40:19] wez@php.net
sniper: lose the anal attitude. Read the mailing list archives and
you'll discover that Sascha didn't approve of the configure magic, and
that neither you nor him wanted to volunteer to make it work.
Due to lack of interest, it was disabled.
Happy now?
Going to fix it now?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/33147
--
Edit this bug report at http://bugs.php.net/?id=33147&edit=1