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 <poll...@php.net>: > 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 > >