Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99821 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43553 invoked from network); 8 Jul 2017 06:49:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2017 06:49:48 -0000 Authentication-Results: pb1.pair.com header.from=php@list.imperialat.at; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php@list.imperialat.at; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain list.imperialat.at designates 80.101.55.235 as permitted sender) X-PHP-List-Original-Sender: php@list.imperialat.at X-Host-Fingerprint: 80.101.55.235 mail.imperialat.at Received: from [80.101.55.235] ([80.101.55.235:54333] helo=mail.imperialat.at) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/F6-47109-A8080695 for ; Sat, 08 Jul 2017 02:49:47 -0400 Received: from mail.imperialat.at (localhost [127.0.0.1]) by mail.imperialat.at (OpenSMTPD) with ESMTP id 108056df; Sat, 8 Jul 2017 08:49:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d= list.imperialat.at; h=subject:to:cc:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=deathstar; bh=6WKtKwRgE0Drg9WHQXe9 rDjVfebfsdIdybARC9JDJhM=; b=alsuRuoliqBaVOPcYftZos9l0fWhIN6KL45K ThOugAYmzLZcPpVOJQSvvyEkmWx2I8Z1j+9CnDaxtIuxeNuk3icJkVmG0goerjrK BlJmsV9PGvHdSZwhgedie8LzGjw+NB1eWMo6vZOA1EXNSZ5emidyE7HTRx8qS0UU FwTDWLXpRmBmaUb3/OEB0UmCfRbcLIMcP3wsyNzztXVQPq1oB+rd1XyI0utOtg0S uhflXq/N9Gy5XrnFrekqBUCopnc6jK1apa1V7qWaR3CsmI/hQU1+jFRfMiVH+LEh EcoTYoOHkzMQ1JzKplngZ5F/ERjG/L+wCEpN9Xhg4kTSpObT6A== Received: from harrypotter.imperialat.at (192.168.153.157 [192.168.153.157]) by mail.imperialat.at (OpenSMTPD) with ESMTPSA id 40566d79 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Sat, 8 Jul 2017 08:49:43 +0200 (CEST) To: Sara Golemon Cc: Niklas Keller , Bob Weinand , Kalle Sommer Nielsen , Internals References: <105535b4-a629-b2e4-c5e9-a75ff565b054@list.imperialat.at> <0b2f0634-e8af-4e93-5cd4-3471d968cb2c@list.imperialat.at> <3cdf9d19-a0f9-e4bf-f243-8ba501e60d76@list.imperialat.at> Message-ID: Date: Sat, 8 Jul 2017 08:49:42 +0200 User-Agent: Mozilla/5.0 (X11; OpenBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Getting fd from stream From: php@list.imperialat.at (Martijn van Duren) On 07/08/17 00:47, Sara Golemon wrote: > On Fri, Jul 7, 2017 at 6:14 PM, Sara Golemon wrote: >> On Fri, Jul 7, 2017 at 4:06 PM, Martijn van Duren >> wrote: >>> blah blah blah >>> >> Ignoring the brokenness of your design, the original ask: Exposing the >> underlying FD from a file stream? Sure. No particular objection to >> it, and the stream::set_option interface has the right mechanism to >> surface it in a general way. Find someone to RFC it, and I don't see >> why it won't show up in PHP 7.3. What you're able to do with it is >> your problem. >> > Here's a diff: https://github.com/php/php-src/compare/master...sgolemon:expose.fd > > -Sara > Thank you. As per https://wiki.php.net/rfc/howto I created the account martijn. I'd like the Karma to turn this patch into an RFC.