Re: [PHP-DEV] Implementing fdopen in PHP

2010-03-15 Thread Arnaud Le Blanc
Le dimanche 14 mars 2010 à 17:38 +1100, Dennis Hotson a écrit : > Hi all, > > It's my first post, so go easy on me. :-) > > I'm trying to implement PHP support for github's erlang RPC server called > ernie. > So basically I've been porting the following ruby code to PHP: > http://github.com/mojom

Re: [PHP-DEV] Implementing fdopen in PHP

2010-03-14 Thread Dennis Hotson
On Mon, Mar 15, 2010 at 1:41 AM, Pierre Joye wrote:> > > When you spawn a new program, you can pass it additionnal descriptors on > > top of stdin/stdout/stderr. > > > > For example look at proc_open(). You can pass more than 3 descriptors, > > and communicate if the program is able to use them.

Re: [PHP-DEV] Implementing fdopen in PHP

2010-03-14 Thread Pierre Joye
On Sun, Mar 14, 2010 at 3:39 PM, M. wrote: > Hi, > > Le dimanche 14 mars 2010 à 15:30 +0100, Keisial a écrit : >> Creating a fdopen call is useless, since it needs a previous >> descriptor to >> work from, and all descriptors are equal. Where's that file >> descriptor >> coming >> from? > > When y

Re: [PHP-DEV] Implementing fdopen in PHP

2010-03-14 Thread M.
Hi, Le dimanche 14 mars 2010 à 15:30 +0100, Keisial a écrit : > Creating a fdopen call is useless, since it needs a previous > descriptor to > work from, and all descriptors are equal. Where's that file > descriptor > coming > from? When you spawn a new program, you can pass it additionnal desc

Re: [PHP-DEV] Implementing fdopen in PHP

2010-03-14 Thread Keisial
Dennis Hotson wrote: Hi all, It's my first post, so go easy on me. :-) I'm trying to implement PHP support for github's erlang RPC server called ernie. So basically I've been porting the following ruby code to PHP: http://github.com/mojombo/ernie/blob/master/lib/ernie.rb The problem I'm having