Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64176 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1630 invoked from network); 6 Dec 2012 09:52:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Dec 2012 09:52:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.42 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.210.42 mail-da0-f42.google.com Received: from [209.85.210.42] ([209.85.210.42:45386] helo=mail-da0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/A2-19753-0DA60C05 for ; Thu, 06 Dec 2012 04:52:16 -0500 Received: by mail-da0-f42.google.com with SMTP id z17so2565342dal.29 for ; Thu, 06 Dec 2012 01:52:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=CZO6JiyK9LiGgjnJixxvlyMK8G0bSfhujMQ8drJSnm0=; b=E+y/inX0mpGdJWZahcfc90igmzDkAAemI7+b6s9eTCof/Ja4/hifu6f8yev+LnKPGJ CFdgg5UwPLRzCdvE2gxUDlL4pjP+nE8ZqrqPBQtk5CcN4BL8YGeN+5gQNu5Yrp1WHjaR xX5r9w8s045hwbUiiTJKWHzfQDtHFn94D37exdf6YjyKBbmq3BHpewR8/wkYYCCnNUio sGKzsBGm2YajGZJk9+NSfg+fV4IojzRbC4Jfoke55eOJnSHysPhSJ4zRgkUaZ+t2Duem JMYR5acNwoHYtikUzYglBh5uxvuGjhOJQOOR2HT0/YWxazpFNKgc1hGwxsiK0QopcY+J CJhw== MIME-Version: 1.0 Received: by 10.68.252.133 with SMTP id zs5mr4378650pbc.152.1354787533672; Thu, 06 Dec 2012 01:52:13 -0800 (PST) Received: by 10.66.86.5 with HTTP; Thu, 6 Dec 2012 01:52:13 -0800 (PST) In-Reply-To: References: Date: Thu, 6 Dec 2012 10:52:13 +0100 Message-ID: To: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: Passing process handles to proc_open and co From: pierre.php@gmail.com (Pierre Joye) 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. 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