From: Wez Furlong Date: Sat, 24 May 2003 03:15:53 +0000 (+0000) Subject: Adjust error message to encourage people with apparently broken IPV6 systems to X-Git-Tag: php-4.3.2RC4~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=976f0d83035be6501853b4729094f27568f971a0;p=php Adjust error message to encourage people with apparently broken IPV6 systems to build PHP without IPV6 support. --- diff --git a/main/network.c b/main/network.c index 076c7c7ef8..bad3cd6a43 100644 --- a/main/network.c +++ b/main/network.c @@ -193,7 +193,11 @@ static int php_network_getaddresses(const char *host, struct sockaddr ***sal TSR hints.ai_family = AF_INET; # endif if ((n = getaddrinfo(host, NULL, &hints, &res))) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "php_network_getaddresses: getaddrinfo failed: %s", PHP_GAI_STRERROR(n)); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "php_network_getaddresses: getaddrinfo failed: %s" +# ifdef HAVE_IPV6 + " (is your IPV6 configuration correct? If this error happens all the time, try reconfiguring PHP using --disable-ipv6 option to configure)" +#endif + , PHP_GAI_STRERROR(n)); return 0; } else if (res == NULL) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "php_network_getaddresses: getaddrinfo failed (null result pointer)");