mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
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:
parent
7d95cece22
commit
3be0ce653b
4
NEWS
4
NEWS
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user