php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7313 checks for ipv6 are too weak.
Submitted: 2000-10-18 12:37 UTC Modified: 2000-10-19 11:01 UTC
From: jan at kneschke dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.3pl1 OS: Linux 2.0.x
Private report: No CVE-ID: None
 [2000-10-18 12:37 UTC] jan at kneschke dot de
an old lib5 system (kernel 2.0.x) is providing struct sockaddr_in6 but doesn't define AF_INET6. the whole system is not ipv6 capable. applying the patch below fix the build process.

--- configure.in        Wed Oct 11 19:31:34 2000
+++ configure.in        Tue Oct 17 23:23:28 2000
@@ -337,5 +337,5 @@
 AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_struct_sockaddr_in6,
 [AC_TRY_COMPILE([#include <sys/socket.h>
-#include <netinet/in.h>], [struct sockaddr_in6 s; s;],
+#include <netinet/in.h>], [struct sockaddr_in6 s; int i; s; i = AF_INET6;],
   ac_cv_struct_sockaddr_in6=yes, ac_cv_struct_sockaddr_in6=no)])
 if test "$ac_cv_struct_sockaddr_in6" = yes; then


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-19 11:01 UTC] venaas@php.net
Fixed in CVS. Thanks for the excellent bug report,
wish more were like this.

Stig

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 11:00:01 2026 UTC