Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101153 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71842 invoked from network); 26 Nov 2017 15:53:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Nov 2017 15:53:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=ml@anderiasch.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ml@anderiasch.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain anderiasch.de designates 81.169.138.148 as permitted sender) X-PHP-List-Original-Sender: ml@anderiasch.de X-Host-Fingerprint: 81.169.138.148 ares.art-core.org Received: from [81.169.138.148] ([81.169.138.148:60546] helo=ares.art-core.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/72-26862-A73EA1A5 for ; Sun, 26 Nov 2017 10:53:30 -0500 Received: from [192.168.178.20] (p50802EE8.dip0.t-ipconnect.de [80.128.46.232]) by ares.art-core.org (mail.art-core.org) with ESMTPSA id BAA9B10380002; Sun, 26 Nov 2017 15:53:26 +0000 (UTC) To: PHP internals References: Cc: Sara Golemon Message-ID: <73a4b3a5-5a48-fdab-8d7a-08cc596661ff@anderiasch.de> Date: Sun, 26 Nov 2017 16:53:26 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] net_get_interfaces() From: ml@anderiasch.de (Florian Anderiasch) On 23.11.2017 23:46, Sara Golemon wrote: > Planning to add net_get_interfaces() > https://github.com/php/php-src/pull/2935/files for enumerating the > adapters on a system and their configured addresses. > Based on a combination of my own implementation and finding out > krakjoe and ab@ had a stalled version already. > > If anyone wants an RFC I'll write one up, but this is pretty small so > mostly just offering for a look before I push. > > -Sara > > Ref: https://bugs.php.net/bug.php?id=17400 > Ref: https://github.com/php/php-src/compare/master...weltling:17400 > Looks good in theory, but without a lot of thought, how likely is this to break/work on "supported" operating systems? (Which ones are that, actually? http://php.net/manual/en/install.unix.php lists the BSDs and Solaris and HP/UX) I know, it explicitly mentions Windows and Linux - also probably someone tried it on OSX, and I don't think (Free|Open|Net)BSD will be a big problem here, but as I'm no expert on that - does that matter? Will it need "just a little work" or could the more exotic ones be more problematic? Greetings, Florian