PHP 4.0 Bug #7726: missing SUN_LEN and msg_flags in struct msghdr
| From: | p dot pastori at acsys dot it | Date: | Thu, 09 Nov 2000 15:42:17 +0000 |
| Subject: | PHP 4.0 Bug #7726: missing SUN_LEN and msg_flags in struct msghdr | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-37569@lists.php.net to get a copy of this message | ||
From: p.pastori@acsys.it
Operating system: IRIX 6.5 (6.5.8m)
PHP version: 4.0.3pl1
PHP Bug Type: Sockets related
Bug description: missing SUN_LEN and msg_flags in struct msghdr
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)
--
Edit Bug report at: http://bugs.php.net/?id=7726&edit=1