|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7726 missing SUN_LEN and msg_flags in struct msghdr
Submitted: 2000-11-09 10:42 UTC Modified: 2001-06-02 21:00 UTC
From: p dot pastori at acsys dot it Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.0.3pl1 OS: IRIX 6.5 (6.5.8m)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: p dot pastori at acsys dot it
New email:
PHP Version: OS:


 [2000-11-09 10:42 UTC] p dot pastori at acsys dot it
On this OS the struct msghdr has not the msg_flags field, i patched this simply avoiding any assignement to this field (that is commenting lines 1621 and 1680 in ext/sockets/sockets.c) and assigning to 0 the value read from that field (lines 1641 and 1698): i hope no critical data are expected to be read from that field but i have still to test for.
The last thing about this source (ext/sockets/sockets.c) is that is totally missing any definition for the SUN_LEN symbol. After a little study i have patched this by simply introducing a define (AAAARGH) like the following:
#define SUN_LEN(a)    sizeof(*a)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-02 21:00 UTC]
This should be fixed with PHP 4.0.6, please try the 
latest release candidate:


PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 02 05:01:29 2023 UTC