]> granicus.if.org Git - php/commitdiff
MFH: fix for #30057
authorWez Furlong <wez@php.net>
Sun, 26 Sep 2004 01:17:42 +0000 (01:17 +0000)
committerWez Furlong <wez@php.net>
Sun, 26 Sep 2004 01:17:42 +0000 (01:17 +0000)
NEWS
configure.in

diff --git a/NEWS b/NEWS
index d5beb4b8b48b3c97217399370bcbede2ffab6801..28ee8419aafd3152ee658dbcdf78a8669794f951 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ PHP 4                                                                      NEWS
 ?? ??? 2004, Version 4.3.10
 - Backported Marcus' foreach() speedup patch from PHP 5.x. (Derick)
 - Fixed potential problems with unserializing invalid serialize data. (Marcus)
+- Fixed bug #30057 (did not detect IPV6 on FreeBSD 4.1). (Wez)
 - Fixed bug #29805 (HTTP Authentication Issues). (Uwe Schindler)
 - Fixed bug #28325 (Circular references not properly serialised). (Moriyoshi)
 - Fixed bug #27469 (serialize() objects of incomplete class). (Dmitry)
index c1b459d6eba90d6597a1051037420b8c9f4c3361..b282d7e6e053df699735342280f74d304aafa3cb 100644 (file)
@@ -528,17 +528,20 @@ AC_CACHE_CHECK([for getaddrinfo], ac_cv_func_getaddrinfo,
   AC_TRY_RUN([
 #include <netdb.h>
 #include <sys/types.h>
+#ifndef AF_INET
+# include <sys/socket.h>
+#endif
 int main(void) {
   struct addrinfo *ai, *pai, hints;
 
   memset(&hints, 0, sizeof(hints));
   hints.ai_flags = AI_NUMERICHOST;
 
-  if (getaddrinfo("127.0.0.1", NULL, &hints, &ai) < 0) {
+  if (getaddrinfo("127.0.0.1", 0, &hints, &ai) < 0) {
     exit(1);
   }
 
-  if (ai == NULL) {
+  if (ai == 0) {
     exit(1);
   }