Skip to content

Commit

Permalink
Adjust error message to encourage people with apparently broken IPV6 …
Browse files Browse the repository at this point in the history
…systems to

build PHP without IPV6 support.
  • Loading branch information
wez committed May 24, 2003
1 parent 7b514da commit 976f0d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main/network.c
Expand Up @@ -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)");
Expand Down

0 comments on commit 976f0d8

Please sign in to comment.