Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109071 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 89756 invoked from network); 16 Mar 2020 18:09:24 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Mar 2020 18:09:24 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1E51218056E for ; Mon, 16 Mar 2020 09:31:52 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-qv1-f66.google.com (mail-qv1-f66.google.com [209.85.219.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 16 Mar 2020 09:31:51 -0700 (PDT) Received: by mail-qv1-f66.google.com with SMTP id c28so9158305qvb.10 for ; Mon, 16 Mar 2020 09:31:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=wym2fjItofZcJVtlVsOxzwRasErg56OR67hNOObNwd0=; b=BzfBCaGs29c+BW0PAZNlN4wQ/WtVs6+eeEUBR0MLkbLJ1oL6fVNmvlFXZAaGR8PlLQ xO+kqykMV0O2/IOxcun9Iimx5/JL7300aYvMg/9fSxNZuEFbFirwjq8mFUyKNkKfXEga 7pndvJk54mDkYZg9Q0TyVDKkXKA3xyUNqv52sekKKy+vTs+u+vBNxntEYA2JwV7J5U8O LSwCCS3N7UxtBgwO9AwjKK/DWWxU5h7Fc+PeRSdIhNF0WH6xDMsYM858ybtEHAChoHuW EPSrSTOJz+s6cvYLv95e9OYObdlkrK3gMF+JD2ppnq2O2zajMtlMtvc7F4ap4S8yczgk +Gfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=wym2fjItofZcJVtlVsOxzwRasErg56OR67hNOObNwd0=; b=CxOl4CRdMP8vbb77ID2SqfzbnCo/oHb9aOZmLUX11QS9CvZpb25+6rldn1Feo8/hoV 2Bz4Nw2HP5/3By6w92VDsfFLwaCga8ZXZO1hHCrVOxzwFKEsDr+IKlaMd3C6R9reOJqK Fhn25ym8e3KjsQhgfbi9KhsW6tIk/wH4y/c64q1ud22hvo0CBO4Bxh16JkwFD2JkvQU8 /J1es1xNRmunMpmArVAyUmjymPqA1hK35XPc7+1Meu1iJeuPWGnu5vmVNCsbWcs61MPV XPu6j4FNm7tC1LVnkXIQ47OIiM98Mqu3unXLNq1h7h7pf+IecSi8y4MSg3BcfezFjK6S p4Mw== X-Gm-Message-State: ANhLgQ1hlJH4ugkDaWoRuR7MuYYTpbZj6MjuqkOy530iu/pe5qpzyXYp Kk4boG5cPiu3EB2+UqRZBLw2KcE31Kj85w== X-Google-Smtp-Source: ADFU+vskdPqJ6q1TD7OLJT7x6gFuJG9AYYZWb6kTLn9RhgR0x09O9uFE9y++CSbs0qYIQSOg7dl0fA== X-Received: by 2002:a0c:a044:: with SMTP id b62mr627781qva.15.1584376309531; Mon, 16 Mar 2020 09:31:49 -0700 (PDT) Received: from [10.10.42.56] (h96-61-170-50.lvrgtn.dsl.dynamic.tds.net. [96.61.170.50]) by smtp.gmail.com with ESMTPSA id j15sm88908qki.66.2020.03.16.09.31.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2020 09:31:48 -0700 (PDT) Message-ID: Content-Type: multipart/signed; boundary="Apple-Mail=_04AFD08C-8ED4-438E-A6F0-F844EA543705"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Date: Mon, 16 Mar 2020 11:31:47 -0500 In-Reply-To: Cc: PHP internals To: Aran Reeks References: X-Mailer: Apple Mail (2.3608.60.0.2.5) Subject: Re: [PHP-DEV] [DISCUSSION] Native UUID support in PHP From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_04AFD08C-8ED4-438E-A6F0-F844EA543705 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 16, 2020, at 11:22, Aran Reeks wrote: >=20 > Hi Ben, >=20 > Thanks for the feedback, I wasn't aware of net_get_interfaces, but = that's really helpful and agree that post your patch, implementing a = get_network_mac_addr() function (or similar name) would be amazing. >=20 net_get_interfaces() returns an array that looks like this, so patching = this wouldn=E2=80=99t introduce a new method but, rather, modify this = array to include a key named =E2=80=9Cmac,=E2=80=9D which (I think) it = already does on Windows but not on Linux. [ "lo" =3D> [ "unicast" =3D> [ [ "flags" =3D> 65609, "family" =3D> 17, ], [ "flags" =3D> 65609, "family" =3D> 2, "address" =3D> "127.0.0.1", "netmask" =3D> "255.0.0.0", ], ], "up" =3D> true, ], "tunl0" =3D> [ "unicast" =3D> [ [ "flags" =3D> 128, "family" =3D> 17, ], ], "up" =3D> false, ], "ip6tnl0" =3D> [ "unicast" =3D> [ [ "flags" =3D> 128, "family" =3D> 17, ], ], "up" =3D> false, ], "eth0" =3D> [ "unicast" =3D> [ [ "flags" =3D> 69699, "family" =3D> 17, ], [ "flags" =3D> 69699, "family" =3D> 2, "address" =3D> "172.17.0.2", "netmask" =3D> "255.255.0.0", "broadcast" =3D> "172.17.255.255", ], ], "up" =3D> true, ], ] --Apple-Mail=_04AFD08C-8ED4-438E-A6F0-F844EA543705 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCXm+p8wAKCRCwLZeYnIwH G+fOAPsEz4qqjuhYZBOTTqCYeJMhyrKlHR/EXxd+Ks9Fm9EXTgD9HqxCBNcEM7+G VMOqJyQz0F+IxO1q6apc3nMTmqdl2V8= =OsKP -----END PGP SIGNATURE----- --Apple-Mail=_04AFD08C-8ED4-438E-A6F0-F844EA543705--