# About PTY

- Thread: https://externals.io/message/65486
- Original archive: https://news-web.php.net/php.internals/65486
- Started by Ivan Enderlin @ Hoa on 2013-01-30T10:51:33+00:00
- Messages: 10
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #65486 — Ivan Enderlin @ Hoa — 2013-01-30T10:51:33+00:00

URL: https://externals.io/message/65486#65486

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.

Thanks for the help,
Best regards.

-- 
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/

---

## #65487 — Ferenc Kovacs — 2013-01-30T10:58:02+00:00

URL: https://externals.io/message/65486#65487 · In reply to: #65486

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,

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.
wez turned that off 9 years ago:
https://github.com/php/php-src/commit/bd818c0118ba406d82f901d4f97a134727440df4



-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu

---

## #65492 — Ivan Enderlin @ Hoa — 2013-01-30T11:45:26+00:00

URL: https://externals.io/message/65486#65492 · In reply to: #65487

> On Wed, Jan 30, 2013 at 11:51 AM, Ivan Enderlin @ Hoa <
> ivan.enderlin@hoa-project.net> wrote:
>
> > […]
> 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/

---

## #65493 — Ferenc Kovacs — 2013-01-30T11:53:51+00:00

URL: https://externals.io/message/65486#65493 · In reply to: #65492

On Wed, Jan 30, 2013 at 12:45 PM, Ivan Enderlin @ Hoa <
ivan.enderlin@hoa-project.net> wrote:

> 
>
> > […]
> Hi,
>
>  based on http://lxr.php.net/xref/PHP_**TRUNK/ext/standard/proc_open.**
> > […]
> Yup, I have seen this condition after sending the email.
>
>
>
>  wez turned that off 9 years ago:
> > […]
> But why? Are arguments always valid today?
>
> Thanks.
>
>
from the previous commits it seems that we had some kind of proc_open build
issue and didn't managed to solve it without removing that:
http://git.php.net/?p=php-src.git;a=history;f=ext/standard/proc_open.c;h=2041d3481ff389e9b2f17d3073176bfdffb0494a;hb=bd818c0118ba406d82f901d4f97a134727440df4


-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu

---

## #65494 — Ferenc Kovacs — 2013-01-30T11:56:19+00:00

URL: https://externals.io/message/65486#65494 · In reply to: #65493

>
>
>
> On Wed, Jan 30, 2013 at 12:45 PM, Ivan Enderlin @ Hoa <
> ivan.enderlin@hoa-project.net> wrote:
>
> > […]
> from the previous commits it seems that we had some kind of proc_open
> build issue and didn't managed to solve it without removing that:
>
> http://git.php.net/?p=php-src.git;a=history;f=ext/standard/proc_open.c;h=2041d3481ff389e9b2f17d3073176bfdffb0494a;hb=bd818c0118ba406d82f901d4f97a134727440df4
>
>
> --
> Ferenc Kovács
> @Tyr43l - http://tyrael.hu
>

and for the record, it seems that the whole feature lived less than a month
and a half, so it isn't something that we properly tested or announced.

-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu

---

## #65635 — Ivan Enderlin @ Hoa — 2013-02-04T14:58:35+00:00

URL: https://externals.io/message/65486#65635 · In reply to: #65493

> wez turned that off 9 years ago:
> > […]
> from the previous commits it seems that we had some kind of proc_open build
> issue and didn't managed to solve it without removing that:
> http://git.php.net/?p=php-src.git;a=history;f=ext/standard/proc_open.c;h=2041d3481ff389e9b2f17d3073176bfdffb0494a;hb=bd818c0118ba406d82f901d4f97a134727440df4
But is it possible to have PTY support today in PHP? These commits are 
from 2004, we are in 2013 now. Maybe new solutions are conceivable.

Best regards.

-- 
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/

---

## #65636 — Ferenc Kovacs — 2013-02-04T15:22:22+00:00

URL: https://externals.io/message/65486#65636 · In reply to: #65635

On Mon, Feb 4, 2013 at 3:58 PM, Ivan Enderlin @ Hoa <
ivan.enderlin@hoa-project.net> wrote:

> 
>
> > […]
> But is it possible to have PTY support today in PHP? These commits are
> from 2004, we are in 2013 now. Maybe new solutions are conceivable.
>
> Best regards.
>
>
Sure, I was just saying that we didn't had a working and mature solution
back then which we removed later, but added something which was broken,
tried to fix it, but give up and removed.


-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu

---

## #65644 — Ivan Enderlin @ Hoa — 2013-02-04T18:32:50+00:00

URL: https://externals.io/message/65486#65644 · In reply to: #65636

> > […]
> Sure, I was just saying that we didn't had a working and mature solution
> back then which we removed later, but added something which was broken,
> tried to fix it, but give up and removed.
Great. Do I open a bug?

Regards.

-- 
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/

---

## #65648 — Ferenc Kovacs — 2013-02-04T18:37:23+00:00

URL: https://externals.io/message/65486#65648 · In reply to: #65644

On Mon, Feb 4, 2013 at 7:32 PM, Ivan Enderlin @ Hoa <
ivan.enderlin@hoa-project.net> wrote:

>
> 
>
> > […]
> Great. Do I open a bug?
>
>
sure, albeit I think that it would infinitely increase the chances to have
this implemented if we could find somebody to actually cook up a patch.

-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu

---

## #65660 — Ivan Enderlin @ Hoa — 2013-02-05T07:36:52+00:00

URL: https://externals.io/message/65486#65660 · In reply to: #65648

> On Mon, Feb 4, 2013 at 7:32 PM, Ivan Enderlin @ Hoa <
> ivan.enderlin@hoa-project.net> wrote:
>
> > […]
> sure, albeit I think that it would infinitely increase the chances to have
> this implemented if we could find somebody to actually cook up a patch.
Certainly. I am coming on IRC to look for someone because I don't have 
enough skills to do such a contribution.

Regards.

-- 
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/
