Re: Re: Passing process handles to proc_open and co

From: Date: Thu, 06 Dec 2012 11:02:25 +0000
Subject: Re: Re: Passing process handles to proc_open and co
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-64177@lists.php.net to get a copy of this message
On Thu, Dec 6, 2012 at 5:52 PM, Pierre Joye <pierre.php@gmail.com> wrote: > I mean bug #44942. Sorry. > > Also to clarify for non C devs. A handle could be an opened file, a > pipe or similar resources. Also important to keep in mind that users > have to pass their own streams to proc_open if they like to pass or > receive data. > Hey, but extension should has ability to change the behavior, thinking of pcntl ext thanks > On Thu, Dec 6, 2012 at 9:49 AM, Pierre Joye <pierre.php@gmail.com> wrote: >> hi! >> >> While looking at the bug #63073, I was wondering if we could simply do >> not pass open handles to the newly created child process. >> >> The main issue in this bug is the session related handles. They are >> passed to the parent process, which hangs until their are closed. It >> indeed does not happen (usually) until the end of the request. It >> makes these functions almost unusable as soon as sessions are used. >> >> These functions are about calling external commands and I fail to see >> which usage may require to access PHP related handles. Does anyone see >> any issue by not passing them anymore? And fixing this bug (and a >> couple of other I think)? >> >> It is windows only. Not sure if we do the same on other platforms. >> >> Cheers, >> -- >> Pierre >> >> @pierrejoye > > > > -- > Pierre > > @pierrejoye | http://blog.thepimp.net | > http://www.libgd.org > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- Laruence Xinchen Hui http://www.laruence.com/

« previous php.internals (#64177) next »