Report wireless network interfaces on Windows too

There is no particular reason to exclude wireless network interfaces
from the results of `net_get_interfaces()` on Windows, especially since
`getifaddrs(3)` includes these as well.

Closes GH-7718.
This commit is contained in:
Yurun 2021-12-05 11:59:18 +08:00 committed by Christoph M. Becker
parent 7d95cece22
commit 3be0ce653b
No known key found for this signature in database
GPG Key ID: D66C9593118BCCB6
2 changed files with 5 additions and 1 deletions

4
NEWS
View File

@ -14,6 +14,10 @@ PHP NEWS
- OCI8:
. Added oci8.prefetch_lob_size directive to tune LOB query performance
- Standard:
. net_get_interfaces() also reports wireless network interfaces on Windows.
(Yurun)
- Zip:
. add ZipArchive::clearError() method
. add ZipArchive::getStreamName() method

View File

@ -190,7 +190,7 @@ PHP_FUNCTION(net_get_interfaces) {
for (p = pAddresses; p; p = p->Next) {
zval iface, unicast;
if ((IF_TYPE_ETHERNET_CSMACD != p->IfType) && (IF_TYPE_SOFTWARE_LOOPBACK != p->IfType)) {
if ((IF_TYPE_ETHERNET_CSMACD != p->IfType) && (IF_TYPE_IEEE80211 != p->IfType) && (IF_TYPE_SOFTWARE_LOOPBACK != p->IfType)) {
continue;
}