summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-05-24 03:15:53 +0000
committerWez Furlong <wez@php.net>2003-05-24 03:15:53 +0000
commit976f0d83035be6501853b4729094f27568f971a0 (patch)
tree3493c8f565e7dceba14d07439b978d0e8bd0db04
parent7b514da372ce25ef7e77d5692580f80c9e2e39a0 (diff)
downloadphp-git-976f0d83035be6501853b4729094f27568f971a0.tar.gz
Adjust error message to encourage people with apparently broken IPV6 systems to
build PHP without IPV6 support.
-rw-r--r--main/network.c6
1 files changed, 5 insertions, 1 deletions
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)");