cvs: php4(PHP_4_3) /main network.c

From: Date: Sat, 24 May 2003 03:15:53 +0000
Subject: cvs: php4(PHP_4_3) /main network.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-21239@lists.php.net to get a copy of this message
wez Fri May 23 23:15:53 2003 EDT Modified files: (Branch: PHP_4_3) /php4/main network.c Log: Adjust error message to encourage people with apparently broken IPV6 systems to build PHP without IPV6 support. Index: php4/main/network.c diff -u php4/main/network.c:1.83.2.14 php4/main/network.c:1.83.2.15 --- php4/main/network.c:1.83.2.14 Tue May 20 18:14:47 2003 +++ php4/main/network.c Fri May 23 23:15:53 2003 @@ -16,7 +16,7 @@ | Streams work by Wez Furlong <wez@thebrainroom.com> | +----------------------------------------------------------------------+ */ -/* $Id: network.c,v 1.83.2.14 2003/05/20 22:14:47 wez Exp $ */ +/* $Id: network.c,v 1.83.2.15 2003/05/24 03:15:53 wez Exp $ */ /*#define DEBUG_MAIN_NETWORK 1*/ @@ -193,7 +193,11 @@ 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)");

« previous php.cvs (#21239) next »