]> granicus.if.org Git - php/commit
Try fallback on IPv4 ANYADDR when IPv6 ANYADDR fails
authorSara Golemon <pollita@php.net>
Wed, 8 Mar 2017 18:00:59 +0000 (10:00 -0800)
committerSara Golemon <pollita@php.net>
Wed, 8 Mar 2017 19:02:54 +0000 (11:02 -0800)
commitb63c45c69e3a97b05314c6f3328a0ff695e28d36
tree6eabb17cc27e3438e121d818966c032af9411324
parent2ba2b768cc4304048cc12250266edf44a3955d47
Try fallback on IPv4 ANYADDR when IPv6 ANYADDR fails

https://bugs.php.net/bug.php?id=74166
A host system with no/limited IPv6 support will fail at binding
the IPv6 ANYADDR address (::) as the address family is unsupported.

Deal with this by handling failure to implicitly bind to ::
as a soft failure, falling back to 0.0.0.0.

If binding to :: failed for some other reason (e.g. port in use)
then binding to 0.0.0.0 will likely fail as well, but we'll
get appropriate warnings for that.
sapi/fpm/fpm/fpm_sockets.c
sapi/fpm/tests/023.phpt [new file with mode: 0644]