php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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)

Patches

Pull Requests

History

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

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

-Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC