php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66381 __ss_family was changed on AIX 5.3
Submitted: 2014-01-01 11:26 UTC Modified: 2014-01-01 11:56 UTC
From: kaplan@php.net Assigned: felipe (profile)
Status: Closed Package: Sockets related
PHP Version: 5.5.7 OS: AIX
Private report: No CVE-ID: None
 [2014-01-01 11:26 UTC] kaplan@php.net
Description:
------------
Commit 5e51c851431189677aa80f7a3a863699488678cd brought back a build problem for sockets on AIX older than 5.3 (similar to bug #62025).

php-5.5.7/ext/sockets/sockaddr_conv.c: In function `php_set_inet46_addr':
php-5.5.7/ext/sockets/sockaddr_conv.c:115: error: structure has no member named `ss_family'
php-5.5.7/ext/sockets/sockaddr_conv.c:125: error: structure has no member named `ss_family'

A similar patch can be applied:
--- a/ext/sockets/sockaddr_conv.c
+++ b/ext/sockets/sockaddr_conv.c
@@ -1,6 +1,9 @@
 #include <php.h>
 #include <php_network.h>
 #include "php_sockets.h"
+#if defined(_AIX) && !defined(HAVE_SA_SS_FAMILY)
+#define ss_family __ss_family
+#endif
 
 #ifdef PHP_WIN32
 #include "windows_common.h"

But we might want to have this code somewhere common (php_sockets.h ?) with sockets.c to prevent duplicates with the fix for bug #62025.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-01 11:55 UTC] felipe@php.net
Automatic comment on behalf of felipensp@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5967fb194f435aa888fd75c31cfb74ffce14ffd3
Log: - Fixed bug #66381 (__ss_family was changed on AIX 5.3)
 [2014-01-01 11:55 UTC] felipe@php.net
-Status: Open +Status: Closed
 [2014-01-01 11:56 UTC] felipe@php.net
-Assigned To: +Assigned To: felipe
 [2014-01-01 11:56 UTC] felipe@php.net
Can you check if it's works fine now?
 [2014-01-02 09:35 UTC] ab@php.net
Automatic comment on behalf of felipensp@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5967fb194f435aa888fd75c31cfb74ffce14ffd3
Log: - Fixed bug #66381 (__ss_family was changed on AIX 5.3)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 08:01:29 2024 UTC