Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64173 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94189 invoked from network); 6 Dec 2012 08:49:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Dec 2012 08:49:32 -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.220.42 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.220.42 mail-pa0-f42.google.com Received: from [209.85.220.42] ([209.85.220.42:65136] helo=mail-pa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/61-19753-B1C50C05 for ; Thu, 06 Dec 2012 03:49:32 -0500 Received: by mail-pa0-f42.google.com with SMTP id rl6so4099479pac.29 for ; Thu, 06 Dec 2012 00:49:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Ph+YS07PTEmWr1yRUee7RozLJJ8rdd9P839X75UCtCI=; b=g2M6uFuXCrzxZwiunVz27XHPdvAMtOvS1Tl06a74+Z/B7/RVqb2cAPMc3raZrNI9Wy 9cBKdCuI1WcAWfQ3gS7bdMPRRua0dZhnRlZ6OC4WT/5QAAxMqnKI2dojz75vwt0GtOu7 Vr2Xw7+DqXsITRwFzTz1x0YDDNyVmetCBD/zzV1HF7oyjq1NZxKPZL3VMJbG0fxcPgRk kdJG+j7sYJdIMi7+3RkEg2pTiVwqB4DQqvFOvYxYTSzmlsOu5u1TnN14/vpxnpegGBmn kO2sxIrHzkrg00Va3iyOf4G4DvKjcmgNtJCFOCXbF/dcp2K+n0THw5OSBti6WwApVHu8 QniA== MIME-Version: 1.0 Received: by 10.68.232.201 with SMTP id tq9mr4379164pbc.12.1354783768529; Thu, 06 Dec 2012 00:49:28 -0800 (PST) Received: by 10.66.86.5 with HTTP; Thu, 6 Dec 2012 00:49:28 -0800 (PST) Date: Thu, 6 Dec 2012 09:49:28 +0100 Message-ID: To: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Passing process handles to proc_open and co From: pierre.php@gmail.com (Pierre Joye) 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