Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99812 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 924 invoked from network); 7 Jul 2017 17:49:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jul 2017 17:49:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.43 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.218.43 mail-oi0-f43.google.com Received: from [209.85.218.43] ([209.85.218.43:34500] helo=mail-oi0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/33-47109-1B9CF595 for ; Fri, 07 Jul 2017 13:49:37 -0400 Received: by mail-oi0-f43.google.com with SMTP id l130so33686312oib.1 for ; Fri, 07 Jul 2017 10:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=o9R0pKXfaFWhE2tooILXqbRn0x1iAv7aH2TGSutKFdg=; b=dkGNn9iVom5dQjMNbt7DvZ39GqLJt2rHkpbU9k2ephpSKOEyqs59F6NUUBxrw5dYPP 0ea8V0zhP2iP54b0h4ZcVz7CLzKnNhqvUqPH1j/itXd8mLBnIzGpOvHP0HsSpv18MsbH DKF9Od6UcB9kaePCuvpdvo8N/IZWUC8QkVYZUC9+yxNzgtOmFeSxep07floJqoHdGeXf ZbETCHYiaQ3mcTGtSvZKDGZy1pzJKGoc8qFWmifPEVeAUX1pQH19iPjbXJO+K64sAGRH X9FQqjofph12TC3UQ/mUYsIWBz2BIxDMM+QcgJngZwmYNVE2fDMVzGX0PCvJQDiZeILN iwbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=o9R0pKXfaFWhE2tooILXqbRn0x1iAv7aH2TGSutKFdg=; b=G+eNVSJB5jce8w4a96n2s5486MAYCM1l41FmYoH8B4UvH7dDl2cszFgiFlug5/dsDI BVpWPwe+OHlbFW3dnF0vCEhp0GAU42oKVyrI8gHj6hR0HY0xnSVfIPaVdgsd0vessdOK cBBWPPNB+uquHak/IMR3A3rlPKNrbVcjVIXGEQssae08wWXnpmcn7GHMIcIm6C3hIZa+ mLjve3CADfs7EoNOhbxD2pKP3xF1rf+/BHj6+bYW7l9pn8o2FE+7ZOxbUb4zlTsgoAHA u4WWMZiUO/Yag0HGdxzk22Su6TegvB8BgFuIoxdg17eYdyJ6c9MbKC/otQb8iHEoNFjV gt0Q== X-Gm-Message-State: AIVw110btDWdJdjTRpS7KeIG7w/mvIvplgJpPDQszmZ/JQH8BGR4a1WQ mEQM4zpR0mgD1Du4mWu1HFmL0N7VDgZaiz8= X-Received: by 10.202.228.8 with SMTP id b8mr1521287oih.223.1499449774281; Fri, 07 Jul 2017 10:49:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.70.1 with HTTP; Fri, 7 Jul 2017 10:49:33 -0700 (PDT) In-Reply-To: References: Date: Fri, 7 Jul 2017 19:49:33 +0200 Message-ID: To: Martijn van Duren Cc: PHP Internals Content-Type: multipart/alternative; boundary="001a11408bea2798c60553bddbc5" Subject: Re: [PHP-DEV] Getting fd from stream From: tyra3l@gmail.com (Ferenc Kovacs) --001a11408bea2798c60553bddbc5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jul 6, 2017 at 11:12 AM, Martijn van Duren wrote: > Hello internals@, > > I have an (exotic) case where I need to be able to get the > filedescriptor from a previously opened stream (via stream_socket_pair) > to hand over to the child process, which needs to reexecute. > > I saw that the php:// wrapper supports php://fd/X syntax, so I reckon > there should be a way to extract the information as well from a stream > as well. Unfortunately I don't seem to be able to find it. > > Can someone point me in the right direction? > > Sincerely, > > Martijn van Duren > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > hi, would you need something like fildes_fileno() from https://github.com/Tyrael/php-fildes ? I never managed to put that up for pecl, not sure if it even compiles anymore with recent php versions --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --001a11408bea2798c60553bddbc5--