]> granicus.if.org Git - php/commitdiff
Adjust error message to encourage people with apparently broken IPV6 systems to
authorWez Furlong <wez@php.net>
Sat, 24 May 2003 03:15:53 +0000 (03:15 +0000)
committerWez Furlong <wez@php.net>
Sat, 24 May 2003 03:15:53 +0000 (03:15 +0000)
build PHP without IPV6 support.

main/network.c

index 076c7c7ef8022c3ff515b7b0d59e3b68069207da..bad3cd6a4390071aa2de3938edb592f08bbee24f 100644 (file)
@@ -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)");