Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64177 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6286 invoked from network); 6 Dec 2012 11:02:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Dec 2012 11:02:51 -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:36665] helo=mail-vc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/43-19753-95B70C05 for ; Thu, 06 Dec 2012 06:02:49 -0500 Received: by mail-vc0-f170.google.com with SMTP id fl11so6331327vcb.29 for ; Thu, 06 Dec 2012 03:02:47 -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=tue5lHLwyenBEQUy9cO0jkEaWcJy8hbsjq/kuomP3sg=; b=IH4UUMRcMjPHHDoh8KTA/YydHKUHc3Lo5IggfPDT6xSMay5qFea1FIe2ykDkecRcFk jaoIUnIa2VAhNSrTpGN5PWM30+YTbPsYPL54l/DG8u3CJOhnsZCmsGlxDznPTQMZghl+ k0iggPFwzv7sVUJ9u9osPjluDEa14u2jDMdWi2uSuoZt19hudug26sD6dKIpOixAPSUj 7aszp8VJH+0Ha3whq1DwaNKmj150q1X5LUbgnuOFl+9dE9xcc2UWfc4BtUuk6zD5ZN6f xJ4CwWMJFuac50kLOMnvdjspfDuJ1G/dHNtobKykHAGwhUFjc7ng3tn/Jut2L3s12Qfz usvw== Received: by 10.58.210.65 with SMTP id ms1mr566539vec.59.1354791766938; Thu, 06 Dec 2012 03:02:46 -0800 (PST) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.221.12.8 with HTTP; Thu, 6 Dec 2012 03:02:25 -0800 (PST) In-Reply-To: References: Date: Thu, 6 Dec 2012 19:02:25 +0800 X-Google-Sender-Auth: CrOwNAWSpKcwxfRskzeZ582ylfg 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 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 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/