Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64178 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7635 invoked from network); 6 Dec 2012 11:04:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Dec 2012 11:04:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vc0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:36108] helo=mail-vc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/93-19753-0AB70C05 for ; Thu, 06 Dec 2012 06:04:00 -0500 Received: by mail-vc0-f170.google.com with SMTP id fl11so6332557vcb.29 for ; Thu, 06 Dec 2012 03:03:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=jaJybppEsfZgeOZzAhPLr9oB22DHXrQV3jPHzWc10rY=; b=tRXu8kErEkPyxivZj6AsjMPKzZDxyyeH+BfYkIgmuWdElwXAF6GPSYaPP+QLXSOZYr KODdYzoh7d4yWoSgk1/OfWmAJQ9Fyfp86MB69ZKWE5dx7+D/zq6iSb+JeCTHtzCOTvjp bPXmvoev890yt3c6w0Kbdpi3SUk2Gr2Tqf2Y6hkyksL+yNz6rMelOT+hn4261ui9enXZ lNgkfMpt7/p3rmlbBAP8TI10LDOKS6dbQGadaTVztgGBOpWDE5Q518h3Q00dUpDyR5MM fus4IJh8124ScsVN1gsuEbVc1WVleoJ08cLccLrCwfCg0+bR6m52LkhSTDq/0Pt/4HQr gJQQ== Received: by 10.52.16.17 with SMTP id b17mr511969vdd.86.1354791838085; Thu, 06 Dec 2012 03:03:58 -0800 (PST) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.221.12.8 with HTTP; Thu, 6 Dec 2012 03:03:38 -0800 (PST) In-Reply-To: References: Date: Thu, 6 Dec 2012 19:03:38 +0800 X-Google-Sender-Auth: p2D92Ux3kykB28u4aJUYIgN7tx8 Message-ID: To: Pierre Joye Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: Passing process handles to proc_open and co From: laruence@php.net (Laruence) On Thu, Dec 6, 2012 at 7:02 PM, Laruence wrote: > On Thu, Dec 6, 2012 at 5:52 PM, Pierre Joye 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 ignore me, I mis-understood. thanks > > thanks >> On Thu, Dec 6, 2012 at 9:49 AM, Pierre Joye 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/ -- Laruence Xinchen Hui http://www.laruence.com/