Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101166 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44297 invoked from network); 27 Nov 2017 17:29:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2017 17:29:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.163 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.163 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.163] ([81.169.146.163:24957] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 78/A9-26862-B5B4C1A5 for ; Mon, 27 Nov 2017 12:29:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1511803737; s=domk; d=kelunik.com; h=Content-Type:Cc:To:Subject:Message-ID:Date:From:References: In-Reply-To:MIME-Version:X-RZG-CLASS-ID:X-RZG-AUTH:Accept-Language: Auto-Submitted:Cc:Date:From:Message-ID:References:Reply-To:Resent-Cc: Resent-Date:Resent-From:Resent-To:Sender:Subject:To: Content-Alternative:Content-Description:Content-Disposition: Content-Duration:Content-Features:Content-ID:Content-Language: Content-Location:Content-MD5:Content-Transfer-Encoding:Content-Type: MIME-Version; bh=c0RCcKHVRXFe2swx/6RKQozmus/Nhh3n5+5L+G2hNkA=; b=vPwWeHd17GNaIeUq9FaIpupUHlaZYXx7bLaOS+jWMOVoXfxkpqC4L8rnfWjYoO4Ip8 bFIrnHetHR/25THpcBmH0e6DbiL/vkjgdRg4MRxWxD3Gwl9aj1h6OL3MszNOmBecuCk6 mjeQg/bxuzE6qsxTemZMVcUAU51KAHipweiuo= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mlsGbEv0XHBzMIJSS+jKTzde5mDb8AaBUcZi8tcA== X-RZG-CLASS-ID: mo00 Received: by mail-yb0-f181.google.com with SMTP id v77so3829546ybi.5 for ; Mon, 27 Nov 2017 09:28:57 -0800 (PST) X-Gm-Message-State: AJaThX4Bx3OAph27TiNZTZaVHxsh4c33NBSwlwE3xHPxX6fIih/haC/3 hdyZrKD3ccDLv/2NkWHDbVEy9jyvqW3kdDrq//A= X-Google-Smtp-Source: AGs4zMb+MItSgACvJU1yHnq5ghfe3H97MMLA/1ZsMBkYdz7s30zBJzZcDwGff6rDPbUjUASKMehahPca0DJR/efzLdI= X-Received: by 10.37.32.137 with SMTP id g131mr20426ybg.297.1511803736361; Mon, 27 Nov 2017 09:28:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.124.71 with HTTP; Mon, 27 Nov 2017 09:28:55 -0800 (PST) In-Reply-To: References: Date: Mon, 27 Nov 2017 18:28:55 +0100 X-Gmail-Original-Message-ID: Message-ID: To: Sara Golemon Cc: PHP internals Content-Type: multipart/alternative; boundary="001a1143e0c4ad1139055efa3c69" Subject: Re: [PHP-DEV] net_get_interfaces() From: me@kelunik.com (Niklas Keller) --001a1143e0c4ad1139055efa3c69 Content-Type: text/plain; charset="UTF-8" Hey Sara, I'm not sure about the naming, but I think such a function is a good idea. Why a `net_*` prefix when it's in ext/standard? I'd suggest `get_network_interfaces()` instead. As previously mentioned on Twitter [1], it could be really useful for us in amphp/socket [2]. [1] https://twitter.com/kelunik/status/934075249452306433 [2] https://github.com/amphp/socket/issues/35 Regards, Niklas 2017-11-23 23:46 GMT+01:00 Sara Golemon : > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a1143e0c4ad1139055efa3c69--