Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99818 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21104 invoked from network); 7 Jul 2017 22:47:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jul 2017 22:47:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.128.178 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.128.178 mail-wr0-f178.google.com Received: from [209.85.128.178] ([209.85.128.178:36314] helo=mail-wr0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/85-47109-96F00695 for ; Fri, 07 Jul 2017 18:47:06 -0400 Received: by mail-wr0-f178.google.com with SMTP id c11so65201049wrc.3 for ; Fri, 07 Jul 2017 15:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=xDnb3aS3PnveIUCbOaEAQLi0MCNxlXszHWE1WvdlB2E=; b=1tO4uWTqK5MH6ycTKXXQ/hzPPv1vGvi3dAobL1WvQE0wmhn3yeRpOmCHw7Cw/I7LtP kQn9F8ZnsIogD5qW8cT5avWi7RLUtVuZlkgf/2p7pUWlNc5R9uMihD2GPXlCoxbYhELS 05al7l27Xn0A7xaf90DrlgVDFUr6e5AipL8BDJmb6+kOvxUNUekWzORBQIgKcqxBsC9y 3tpnR6JpFYoamA97Z+2UU7jCHl5YJ7jofB8luq24k7gDnL4IoMNcZqvKq5ecF7I5bHvM QtGtRepIg6Da1vyQWWXPioZdwJB9z3QHe9g454/A7ukOkyn5b5suhuEFKY1atI7zAbdV pyFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=xDnb3aS3PnveIUCbOaEAQLi0MCNxlXszHWE1WvdlB2E=; b=ARr3FIIjZ/7LWARvRgw2sPNMzM2R7mLda0srDCS6x28PaRf3qn3rtsXuIFggKc4Mzy 5R+xKW+6SIyODoFbwyDjnmKIJBQ9Veq+0hgnOBHEt5WsLZkGh+fSdyPnYGTWVlfBY9i9 ZRT2OgGtqR0tap2x/WE7pbZhTZiP4v0XZQfb6bh9Ny9hZllLSZC7l9lWSPrSuekI3n7I itsrm+mTnDWSPlQn7UOW2Il7u1zx8UFow6QodThLcB8bh5Bkqs4HJNDq0keNJdWdRFB8 DiuGwHH7TMssopvH2Lm2wVlWOof/s9koWHFIpVLL2sWRwAKQmZB+8iMn+hGUwyx56Sip Nf9Q== X-Gm-Message-State: AIVw112fy8o6oidHN6y5ernk3M5hivLKJcZdeBnJuKeyox8q0Zck9nVr WKcCzXnUFGJAYzTiKYwGM3Cu9fRR/n+g X-Received: by 10.223.130.36 with SMTP id 33mr1914359wrb.111.1499467622285; Fri, 07 Jul 2017 15:47:02 -0700 (PDT) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.223.169.139 with HTTP; Fri, 7 Jul 2017 15:47:01 -0700 (PDT) X-Originating-IP: [71.251.16.204] In-Reply-To: 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> Date: Fri, 7 Jul 2017 18:47:01 -0400 X-Google-Sender-Auth: MdDVlxCAeb9c0R3qXRrNXV-Nw-k Message-ID: To: Martijn van Duren Cc: Niklas Keller , Bob Weinand , Kalle Sommer Nielsen , Internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Getting fd from stream From: pollita@php.net (Sara Golemon) 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