If PHP's configure script doesn't detect IPv6 support on a given platform, the PHP binaries are built without the inet_pton/inet_ntop functions.
We can use the compat functions in these instances.
(In [4623]) fixes #2385