[wp-trac] [WordPress Trac] #41083: IP with port number triggers warnings in WP_Community_Events
WordPress Trac
noreply at wordpress.org
Mon Jun 19 23:34:24 UTC 2017
#41083: IP with port number triggers warnings in WP_Community_Events
----------------------------------------+-----------------------------
Reporter: EatonZ | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.8.1
Component: Administration | Version: 4.8
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug | Focuses: administration
----------------------------------------+-----------------------------
Comment (by iandunn):
Got another report of this, but with an IPv6 address that lacks a port.
We'll need to test for this case too.
> Warning: inet_pton(): Unrecognized address
2601:601:f00:d1bb:a468:d709:115e:de78 in wp-admin/includes/class-wp-
community-events.php on line 268
>
> Warning: inet_pton(): Unrecognized address
ffff:ffff:ffff:ffff:0000:0000:0000:0000 in wp-admin/includes/class-wp-
community-events.php on line 274
>
> Warning: inet_ntop(): Invalid in_addr value in wp-admin/includes/class-
wp-community-events.php on line 274
I wasn't able to reproduce it on Ubuntu 14 w/ Nginx and PHP 5.5.9, though,
so it may only happen on certain setups. It looks like PHP can be compiled
without IPv6 support. We can use `defined( 'AF_INET6' )` to detect that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41083#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list