Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65492 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70636 invoked from network); 30 Jan 2013 11:45:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2013 11:45:31 -0000 Authentication-Results: pb1.pair.com header.from=ivan.enderlin@hoa-project.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ivan.enderlin@hoa-project.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hoa-project.net from 95.130.12.24 cause and error) X-PHP-List-Original-Sender: ivan.enderlin@hoa-project.net X-Host-Fingerprint: 95.130.12.24 host1.trois-doubles.net Linux 2.6 Received: from [95.130.12.24] ([95.130.12.24:46206] helo=host1.trois-doubles.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/AB-09318-AD709015 for ; Wed, 30 Jan 2013 06:45:31 -0500 Received: from Hwhost2.local (151-10.203-62.cust.bluewin.ch [62.203.10.151]) by host1.trois-doubles.net (Postfix) with ESMTPSA id 08F2E20ABD7 for ; Wed, 30 Jan 2013 12:45:26 +0100 (CET) Message-ID: <510907D6.8060200@hoa-project.net> Date: Wed, 30 Jan 2013 12:45:26 +0100 Reply-To: ivan.enderlin@hoa-project.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:20.0) Gecko/20100101 Thunderbird/20.0a2 MIME-Version: 1.0 To: internals@lists.php.net References: <5108FB35.1060906@hoa-project.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] About PTY From: ivan.enderlin@hoa-project.net ("Ivan Enderlin @ Hoa") On 30/01/13 11:58, Ferenc Kovacs wrote: > On Wed, Jan 30, 2013 at 11:51 AM, Ivan Enderlin @ Hoa < > ivan.enderlin@hoa-project.net> wrote: > >> Hi, >> >> I wonder if PHP supports PTY? I see old codes (from 2004 to 2010) using >> proc_open with $descriptors = [[0 => 'pty']] for example. When I try, I >> have an error because PTY seems to not be supported. ./configure does not >> propose me to --enable-pty as I have seen in some related posts. >> >> >> > Hi, Hi, > based on http://lxr.php.net/xref/PHP_TRUNK/ext/standard/proc_open.c#653 and > http://lxr.php.net/xref/PHP_TRUNK/ext/standard/proc_open.c#64 (notice the > 0 &&) I would say it isn't supported anymore. Yup, I have seen this condition after sending the email. > wez turned that off 9 years ago: > https://github.com/php/php-src/commit/bd818c0118ba406d82f901d4f97a134727440df4 But why? Are arguments always valid today? Thanks. -- Ivan Enderlin Developer of Hoa http://hoa-project.net/ PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/